Skip to content

Latest commit

 

History

History
206 lines (71 loc) · 2.23 KB

ConsoleTerminateEvent.md

File metadata and controls

206 lines (71 loc) · 2.23 KB

ConsoleTerminateEvent

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

Properties

exitCode

private $exitCode

Methods

__construct

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

setExitCode

public setExitCode(int $exitCode): void

Parameters:

Parameter Type Description
$exitCode int

getExitCode

public getExitCode(): int

Inherited methods

__construct

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

getCommand

Gets the command that is executed.

public getCommand(): \Symfony\Component\Console\Command\Command|null

getInput

Gets the input instance.

public getInput(): \Symfony\Component\Console\Input\InputInterface

getOutput

Gets the output instance.

public getOutput(): \Symfony\Component\Console\Output\OutputInterface