summaryrefslogtreecommitdiff
path: root/vendor/symfony/console/ConsoleEvents.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/console/ConsoleEvents.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/console/ConsoleEvents.php')
-rw-r--r--vendor/symfony/console/ConsoleEvents.php72
1 files changed, 72 insertions, 0 deletions
diff --git a/vendor/symfony/console/ConsoleEvents.php b/vendor/symfony/console/ConsoleEvents.php
new file mode 100644
index 0000000..6ae8f32
--- /dev/null
+++ b/vendor/symfony/console/ConsoleEvents.php
@@ -0,0 +1,72 @@
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Console;
13
14use Symfony\Component\Console\Event\ConsoleCommandEvent;
15use Symfony\Component\Console\Event\ConsoleErrorEvent;
16use Symfony\Component\Console\Event\ConsoleSignalEvent;
17use Symfony\Component\Console\Event\ConsoleTerminateEvent;
18
19/**
20 * Contains all events dispatched by an Application.
21 *
22 * @author Francesco Levorato <git@flevour.net>
23 */
24final class ConsoleEvents
25{
26 /**
27 * The COMMAND event allows you to attach listeners before any command is
28 * executed by the console. It also allows you to modify the command, input and output
29 * before they are handed to the command.
30 *
31 * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
32 */
33 public const COMMAND = 'console.command';
34
35 /**
36 * The SIGNAL event allows you to perform some actions
37 * after the command execution was interrupted.
38 *
39 * @Event("Symfony\Component\Console\Event\ConsoleSignalEvent")
40 */
41 public const SIGNAL = 'console.signal';
42
43 /**
44 * The TERMINATE event allows you to attach listeners after a command is
45 * executed by the console.
46 *
47 * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
48 */
49 public const TERMINATE = 'console.terminate';
50
51 /**
52 * The ERROR event occurs when an uncaught exception or error appears.
53 *
54 * This event allows you to deal with the exception/error or
55 * to modify the thrown exception.
56 *
57 * @Event("Symfony\Component\Console\Event\ConsoleErrorEvent")
58 */
59 public const ERROR = 'console.error';
60
61 /**
62 * Event aliases.
63 *
64 * These aliases can be consumed by RegisterListenersPass.
65 */
66 public const ALIASES = [
67 ConsoleCommandEvent::class => self::COMMAND,
68 ConsoleErrorEvent::class => self::ERROR,
69 ConsoleSignalEvent::class => self::SIGNAL,
70 ConsoleTerminateEvent::class => self::TERMINATE,
71 ];
72}