1
0
Fork 0

Ignore the COMPOSER env var when executing global scope commands, fixes #9259

pull/9280/head
Jordi Boggiano 2020-10-12 10:53:35 +02:00
parent 159bb84fa6
commit 6bf136489f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ EOT
return parent::run($input, $output);
}
// The COMPOSER env var should not apply to the global execution scope
if (getenv('COMPOSER')) {
putenv('COMPOSER');
unset($_SERVER['COMPOSER']);
}
// change to global dir
$config = Factory::createConfig();
$home = $config->get('home');