You are here

public function ConsoleTerminateEvent::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Event/ConsoleTerminateEvent.php \Symfony\Component\Console\Event\ConsoleTerminateEvent::__construct()

Overrides ConsoleEvent::__construct

File

vendor/symfony/console/Event/ConsoleTerminateEvent.php, line 32

Class

ConsoleTerminateEvent
Allows to manipulate the exit code of a command after its execution.

Namespace

Symfony\Component\Console\Event

Code

public function __construct(Command $command, InputInterface $input, OutputInterface $output, $exitCode) {
  parent::__construct($command, $input, $output);
  $this
    ->setExitCode($exitCode);
}