1
0
Fork 0

Fix pear ctor, refs #2444

pull/2452/merge
Jordi Boggiano 2013-11-22 10:11:04 +01:00
parent 4fe35ae693
commit 4e4fc257e6
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ use Composer\Package\Version\VersionParser;
use Composer\Repository\Pear\ChannelReader; use Composer\Repository\Pear\ChannelReader;
use Composer\Package\CompletePackage; use Composer\Package\CompletePackage;
use Composer\Repository\Pear\ChannelInfo; use Composer\Repository\Pear\ChannelInfo;
use Composer\EventDispatcher\EventDispatcher;
use Composer\Package\Link; use Composer\Package\Link;
use Composer\Package\LinkConstraint\VersionConstraint; use Composer\Package\LinkConstraint\VersionConstraint;
use Composer\Util\RemoteFilesystem; use Composer\Util\RemoteFilesystem;
@ -43,7 +44,7 @@ class PearRepository extends ArrayRepository
*/ */
private $vendorAlias; private $vendorAlias;
public function __construct(array $repoConfig, IOInterface $io, Config $config, RemoteFilesystem $rfs = null) public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $dispatcher = null, RemoteFilesystem $rfs = null)
{ {
if (!preg_match('{^https?://}', $repoConfig['url'])) { if (!preg_match('{^https?://}', $repoConfig['url'])) {
$repoConfig['url'] = 'http://'.$repoConfig['url']; $repoConfig['url'] = 'http://'.$repoConfig['url'];