function StatusCommand::execute
Overrides Command::execute
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ StatusCommand.php, line 61
Class
- StatusCommand
- @author Tiago Ribeiro <tiago.ribeiro@seegno.com> @author Rui Marinho <rui.marinho@seegno.com>
Namespace
Composer\CommandCode
protected function execute(InputInterface $input, OutputInterface $output) : int {
$composer = $this->requireComposer();
$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'status', $input, $output);
$composer->getEventDispatcher()
->dispatch($commandEvent->getName(), $commandEvent);
// Dispatch pre-status-command
$composer->getEventDispatcher()
->dispatchScript(ScriptEvents::PRE_STATUS_CMD, true);
$exitCode = $this->doExecute($input);
// Dispatch post-status-command
$composer->getEventDispatcher()
->dispatchScript(ScriptEvents::POST_STATUS_CMD, true);
return $exitCode;
}