Respect --no-plugins flag when firing pre-command-run event
parent
8eae15182c
commit
d73aef5c8a
|
@ -127,7 +127,8 @@ abstract class BaseCommand extends Command
|
|||
protected function initialize(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
// initialize a plugin-enabled Composer instance, either local or global
|
||||
$composer = $this->getComposer(false, false);
|
||||
$disablePlugins = $input->hasParameterOption('--no-plugins');
|
||||
$composer = $this->getComposer(false, $disablePlugins);
|
||||
if (null === $composer) {
|
||||
$composer = Factory::createGlobal($this->getIO(), false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue