ConsoleEvents
in package
FinalYes
Contains all events dispatched by an Application.
Tags
Table of Contents
Constants
- ALIASES = [\Symfony\Component\Console\Event\ConsoleCommandEvent::class => self::COMMAND, \Symfony\Component\Console\Event\ConsoleErrorEvent::class => self::ERROR, \Symfony\Component\Console\Event\ConsoleSignalEvent::class => self::SIGNAL, \Symfony\Component\Console\Event\ConsoleTerminateEvent::class => self::TERMINATE]
- Event aliases.
- COMMAND = 'console.command'
- The COMMAND event allows you to attach listeners before any command is executed by the console. It also allows you to modify the command, input and output before they are handed to the command.
- ERROR = 'console.error'
- The ERROR event occurs when an uncaught exception or error appears.
- SIGNAL = 'console.signal'
- The SIGNAL event allows you to perform some actions after the command execution was interrupted.
- TERMINATE = 'console.terminate'
- The TERMINATE event allows you to attach listeners after a command is executed by the console.
Constants
ALIASES
Event aliases.
public
mixed
ALIASES
= [\Symfony\Component\Console\Event\ConsoleCommandEvent::class => self::COMMAND, \Symfony\Component\Console\Event\ConsoleErrorEvent::class => self::ERROR, \Symfony\Component\Console\Event\ConsoleSignalEvent::class => self::SIGNAL, \Symfony\Component\Console\Event\ConsoleTerminateEvent::class => self::TERMINATE]
These aliases can be consumed by RegisterListenersPass.
COMMAND
The COMMAND event allows you to attach listeners before any command is executed by the console. It also allows you to modify the command, input and output before they are handed to the command.
public
mixed
COMMAND
= 'console.command'
Tags
ERROR
The ERROR event occurs when an uncaught exception or error appears.
public
mixed
ERROR
= 'console.error'
This event allows you to deal with the exception/error or to modify the thrown exception.
Tags
SIGNAL
The SIGNAL event allows you to perform some actions after the command execution was interrupted.
public
mixed
SIGNAL
= 'console.signal'
Tags
TERMINATE
The TERMINATE event allows you to attach listeners after a command is executed by the console.
public
mixed
TERMINATE
= 'console.terminate'