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