1
0
Fork 0

Override the config source with the local one as it should be

pull/5359/head
Jordi Boggiano 2016-05-17 22:28:20 +01:00
parent 32a8a60695
commit 9dc6490403
1 changed files with 3 additions and 1 deletions

View File

@ -286,7 +286,9 @@ class Factory
$config->merge($localConfig);
if (isset($composerFile)) {
$io->writeError('Loading config file ' . $composerFile, true, IOInterface::DEBUG);
$localAuthFile = new JsonFile(dirname(realpath($composerFile)) . '/auth.json');
$config->setConfigSource(new JsonConfigSource(new JsonFile(realpath($composerFile), null, $io)));
$localAuthFile = new JsonFile(dirname(realpath($composerFile)) . '/auth.json', null, $io);
if ($localAuthFile->exists()) {
$io->writeError('Loading config file ' . $localAuthFile->getPath(), true, IOInterface::DEBUG);
$config->merge(array('config' => $localAuthFile->read()));