Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StatusCommand.php

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\Command

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal