Allows to manipulate the exit code of a command after its execution.
- Full name:
\Symfony\Component\Console\Event\ConsoleTerminateEvent
- Parent class:
\Symfony\Component\Console\Event\ConsoleEvent
- This class is marked as final and can't be subclassed
- This class is a Final class
private $exitCode
public __construct(\Symfony\Component\Console\Command\Command $command, \Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output, int $exitCode): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$command |
\Symfony\Component\Console\Command\Command | |
$input |
\Symfony\Component\Console\Input\InputInterface | |
$output |
\Symfony\Component\Console\Output\OutputInterface | |
$exitCode |
int |
public setExitCode(int $exitCode): void
Parameters:
Parameter | Type | Description |
---|---|---|
$exitCode |
int |
public getExitCode(): int
public __construct(?\Symfony\Component\Console\Command\Command $command, \Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$command |
?\Symfony\Component\Console\Command\Command | |
$input |
\Symfony\Component\Console\Input\InputInterface | |
$output |
\Symfony\Component\Console\Output\OutputInterface |
Gets the command that is executed.
public getCommand(): \Symfony\Component\Console\Command\Command|null
Gets the input instance.
public getInput(): \Symfony\Component\Console\Input\InputInterface
Gets the output instance.
public getOutput(): \Symfony\Component\Console\Output\OutputInterface