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

Breadcrumb

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

function TraceableCommand::execute

Overrides Command::execute

File

vendor/symfony/console/Command/TraceableCommand.php, line 327

Class

TraceableCommand
@internal

Namespace

Symfony\Component\Console\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
    $event = $this->stopwatch
        ->start($this->getName() . '.execute', 'command');
    $exitCode = $this->command
        ->execute($input, $output);
    $event->stop();
    return $exitCode;
}
RSS feed
Powered by Drupal