Fix repositories warning
parent
005559dc2f
commit
eb35244230
|
@ -51,7 +51,6 @@ class Factory
|
|||
// Configuration defaults
|
||||
$composerConfig = array(
|
||||
'vendor-dir' => 'vendor',
|
||||
'repositories' => array(),
|
||||
);
|
||||
|
||||
$packageConfig = $file->read();
|
||||
|
@ -73,11 +72,13 @@ class Factory
|
|||
|
||||
// load default repository unless it's explicitly disabled
|
||||
$loadPackagist = true;
|
||||
if (isset($packageConfig['repositories'])) {
|
||||
foreach ($packageConfig['repositories'] as $repo) {
|
||||
if (isset($repo['packagist']) && $repo['packagist'] === false) {
|
||||
$loadPackagist = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($loadPackagist) {
|
||||
$this->addPackagistRepository($rm);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue