summaryrefslogtreecommitdiff
path: root/vendor/symfony/console/ConsoleEvents.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/console/ConsoleEvents.php')
-rw-r--r--vendor/symfony/console/ConsoleEvents.php35
1 files changed, 17 insertions, 18 deletions
diff --git a/vendor/symfony/console/ConsoleEvents.php b/vendor/symfony/console/ConsoleEvents.php
index 1ed41b7d..bf6cab9a 100644
--- a/vendor/symfony/console/ConsoleEvents.php
+++ b/vendor/symfony/console/ConsoleEvents.php
@@ -23,12 +23,7 @@ final class ConsoleEvents
* 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
+ * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
*/
const COMMAND = 'console.command';
@@ -36,26 +31,30 @@ final class ConsoleEvents
* 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
+ * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
*/
const TERMINATE = 'console.terminate';
/**
- * The EXCEPTION event occurs when an uncaught exception appears.
+ * The EXCEPTION event occurs when an uncaught exception appears
+ * while executing Command#run().
*
* 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.
+ * to modify the thrown exception.
*
- * @Event
+ * @Event("Symfony\Component\Console\Event\ConsoleExceptionEvent")
*
- * @var string
+ * @deprecated The console.exception event is deprecated since version 3.3 and will be removed in 4.0. Use the console.error event instead.
*/
const EXCEPTION = 'console.exception';
+
+ /**
+ * 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")
+ */
+ const ERROR = 'console.error';
}