1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix --no-scripts disabling events for plugins

This commit is contained in:
Nicolas Grekas 2021-06-04 09:56:28 +02:00 committed by Jordi Boggiano
parent 288e19153d
commit eac069bf36
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
7 changed files with 25 additions and 15 deletions

View file

@ -116,6 +116,7 @@ EOT
}
$composer = $this->getComposer(true, $input->getOption('no-plugins'));
$composer->getEventDispatcher()->setRunScripts(!$input->getOption('no-scripts'));
if (!HttpDownloader::isCurlEnabled()) {
$io->writeError('<warning>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</warning>');
@ -220,7 +221,6 @@ EOT
->setPreferDist($preferDist)
->setDevMode(!$input->getOption('no-dev'))
->setDumpAutoloader(!$input->getOption('no-autoloader'))
->setRunScripts(!$input->getOption('no-scripts'))
->setOptimizeAutoloader($optimize)
->setClassMapAuthoritative($authoritative)
->setApcuAutoloader($apcu, $apcuPrefix)