Fix pear ctor, refs #2444
parent
4fe35ae693
commit
4e4fc257e6
|
@ -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'];
|
||||||
|
|
Loading…
Reference in New Issue