ConsoleErrorEvent
class ConsoleErrorEvent extends ConsoleEvent
Allows to handle throwables thrown while running a command.
Properties
protected | $command | from ConsoleEvent |
Methods
__construct(InputInterface $input, OutputInterface $output, Throwable $error, Command $command = null)
No description
void
setExitCode(int $exitCode)
No description
int
getExitCode()
No description
Details
stopPropagation()
Stops the propagation of the event to further event listeners.
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().