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:
parent
288e19153d
commit
eac069bf36
7 changed files with 25 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue