final class ConsoleEvents in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/ConsoleEvents.php \Symfony\Component\Console\ConsoleEvents
Contains all events dispatched by an Application.
@author Francesco Levorato <git@flevour.net>
Hierarchy
- class \Symfony\Component\Console\ConsoleEvents
Expanded class hierarchy of ConsoleEvents
2 files declare their use of ConsoleEvents
- DebugHandlersListener.php in vendor/
symfony/ http-kernel/ EventListener/ DebugHandlersListener.php - DebugHandlersListenerTest.php in vendor/
symfony/ http-kernel/ Tests/ EventListener/ DebugHandlersListenerTest.php
File
- vendor/
symfony/ console/ ConsoleEvents.php, line 19
Namespace
Symfony\Component\ConsoleView source
final class ConsoleEvents {
/**
* 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 handled to the command.
*
* The event listener method receives a Symfony\Component\Console\Event\ConsoleCommandEvent
* instance.
*
* @Event
*
* @var string
*/
const COMMAND = 'console.command';
/**
* The TERMINATE event allows you to attach listeners after a command is
* executed by the console.
*
* The event listener method receives a Symfony\Component\Console\Event\ConsoleTerminateEvent
* instance.
*
* @Event
*
* @var string
*/
const TERMINATE = 'console.terminate';
/**
* The EXCEPTION event occurs when an uncaught exception appears.
*
* This event allows you to deal with the exception or
* to modify the thrown exception. The event listener method receives
* a Symfony\Component\Console\Event\ConsoleExceptionEvent
* instance.
*
* @Event
*
* @var string
*/
const EXCEPTION = 'console.exception';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConsoleEvents:: |
constant | 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 handled to the command. | ||
ConsoleEvents:: |
constant | The EXCEPTION event occurs when an uncaught exception appears. | ||
ConsoleEvents:: |
constant | The TERMINATE event allows you to attach listeners after a command is executed by the console. |