<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console; use Symfony\Component\Console\Event\ConsoleCommandEvent; use Symfony\Component\Console\Event\ConsoleErrorEvent; use Symfony\Component\Console\Event\ConsoleSignalEvent; use Symfony\Component\Console\Event\ConsoleTerminateEvent; /** * Contains all events dispatched by an Application. * * @author Francesco Levorato <git@flevour.net> */ 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 handed to the command. * * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent") */ public const COMMAND = 'console.command'; /** * The SIGNAL event allows you to perform some actions * after the command execution was interrupted. * * @Event("Symfony\Component\Console\Event\ConsoleSignalEvent") */ public const SIGNAL = 'console.signal'; /** * The TERMINATE event allows you to attach listeners after a command is * executed by the console. * * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent") */ public const TERMINATE = 'console.terminate'; /** * The ERROR event occurs when an uncaught exception or error appears. * * This event allows you to deal with the exception/error or * to modify the thrown exception. * * @Event("Symfony\Component\Console\Event\ConsoleErrorEvent") */ public const ERROR = 'console.error'; /** * Event aliases. * * These aliases can be consumed by RegisterListenersPass. */ public const ALIASES = [ ConsoleCommandEvent::class => self::COMMAND, ConsoleErrorEvent::class => self::ERROR, ConsoleSignalEvent::class => self::SIGNAL, ConsoleTerminateEvent::class => self::TERMINATE, ]; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Attribute | Folder | 0755 |
|
|
CI | Folder | 0755 |
|
|
Command | Folder | 0755 |
|
|
CommandLoader | Folder | 0755 |
|
|
Completion | Folder | 0755 |
|
|
DependencyInjection | Folder | 0755 |
|
|
Descriptor | Folder | 0755 |
|
|
Event | Folder | 0755 |
|
|
EventListener | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Formatter | Folder | 0755 |
|
|
Helper | Folder | 0755 |
|
|
Input | Folder | 0755 |
|
|
Logger | Folder | 0755 |
|
|
Output | Folder | 0755 |
|
|
Question | Folder | 0755 |
|
|
Resources | Folder | 0755 |
|
|
SignalRegistry | Folder | 0755 |
|
|
Style | Folder | 0755 |
|
|
Tester | Folder | 0755 |
|
|
Application.php | File | 44.13 KB | 0644 |
|
CHANGELOG.md | File | 9.8 KB | 0644 |
|
Color.php | File | 3.69 KB | 0644 |
|
ConsoleEvents.php | File | 2.12 KB | 0644 |
|
Cursor.php | File | 3.89 KB | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
README.md | File | 681 B | 0644 |
|
SingleCommandApplication.php | File | 1.75 KB | 0644 |
|
Terminal.php | File | 6.64 KB | 0644 |
|
composer.json | File | 1.68 KB | 0644 |
|