ConsoleEvents
Class defining the events available in the console application.
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Constants
APPLICATION_ERROR
The APPLICATION_ERROR event is an event triggered when an uncaught Throwable is received at the main application executor.
This event allows developers to handle the Throwable.
Value | 'console.application_error' |
---|---|
since |
2.0.0 |
Type(s)
string
BEFORE_COMMAND_EXECUTE
The BEFORE_COMMAND_EXECUTE event is an event triggered before a command is executed.
This event allows developers to modify information about the command or the command's dependencies prior to the command being executed.
Value | 'console.before_command_execute' |
---|---|
since |
2.0.0 |
Type(s)
string
COMMAND_ERROR
The COMMAND_ERROR event is an event triggered when an uncaught Throwable from a command is received.
This event allows developers to handle the Throwable.
Value | 'console.command_error' |
---|---|
since |
2.0.0 |
Type(s)
string
TERMINATE
The TERMINATE event is an event triggered immediately before the application is exited.
This event allows developers to perform any post-process actions and to manipulate the process' exit code.
Value | 'console.terminate' |
---|---|
since |
2.0.0 |
Type(s)
string