Symfony\Component\Console\Event\ConsoleTerminateEvent
Allows to manipulate the exit code of a command after its execution.
- Author: Francesco Levorato <git@flevour.net>
Synopsis
class ConsoleTerminateEvent
extends ConsoleEvent
{
- // members
- private integer $exitCode;
- // Inherited members from ConsoleEvent
- protected $command;
- // methods
- public void __construct()
- public void setExitCode()
- public integer getExitCode()
- // Inherited methods from ConsoleEvent
- public void __construct()
- public Command getCommand()
- public InputInterface getInput()
- public OutputInterface getOutput()
- // Inherited methods from Event
- public Boolean isPropagationStopped()
- public void stopPropagation()
- public void setDispatcher()
- public EventDispatcherInterface getDispatcher()
- public string getName()
- public void setName()
Hierarchy
Members
private
- $exitCode
—
integer
The exit code of the command.
protected
- $command
Methods
public
- __construct()
- getExitCode() — Gets the exit code.
- setExitCode() — Sets the exit code.
Inherited from Symfony\Component\Console\Event\ConsoleEvent
public
- getCommand() — Gets the command that is executed.
- getInput() — Gets the input instance.
- getOutput() — Gets the output instance.
Inherited from Symfony\Component\EventDispatcher\Event
public
- getDispatcher() — Returns the EventDispatcher that dispatches this Event
- getName() — Gets the event's name.
- isPropagationStopped() — Returns whether further event listeners should be triggered.
- setDispatcher() — Stores the EventDispatcher that dispatches this Event
- setName() — Sets the event's name property.
- stopPropagation() — Stops the propagation of the event to further event listeners.