Bullet-proof global composer instantiation
parent
4cc52afcc4
commit
d621c51b2c
|
@ -353,12 +353,12 @@ class Factory
|
||||||
}
|
}
|
||||||
|
|
||||||
$composer = null;
|
$composer = null;
|
||||||
chdir($config->get('home'));
|
|
||||||
try {
|
try {
|
||||||
|
chdir($config->get('home'));
|
||||||
$composer = self::createComposer($io, null, $disablePlugins, false);
|
$composer = self::createComposer($io, null, $disablePlugins, false);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
}
|
}
|
||||||
chdir($oldCwd);
|
@chdir($oldCwd);
|
||||||
|
|
||||||
return $composer;
|
return $composer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue