1
0
Fork 0

Fix vcs repo constructor, fixes #2444

pull/2447/merge
Jordi Boggiano 2013-11-22 10:05:08 +01:00
parent 1ee30ea592
commit 4fe35ae693
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ use Composer\Package\Loader\ArrayLoader;
use Composer\Package\Loader\ValidatingArrayLoader;
use Composer\Package\Loader\InvalidPackageException;
use Composer\Package\Loader\LoaderInterface;
use Composer\EventDispatcher\EventDispatcher;
use Composer\IO\IOInterface;
use Composer\Config;
@ -38,7 +39,7 @@ class VcsRepository extends ArrayRepository
protected $repoConfig;
protected $branchErrorOccurred = false;
public function __construct(array $repoConfig, IOInterface $io, Config $config, array $drivers = null)
public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $dispatcher = null, array $drivers = null)
{
$this->drivers = $drivers ?: array(
'github' => 'Composer\Repository\Vcs\GitHubDriver',