summaryrefslogtreecommitdiff
path: root/vendor/symfony/console/ConsoleEvents.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-12-15 11:24:35 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-12-15 11:55:42 -0800
commita93b8e10f5954be0853eec693c13e84c4bd9e6f2 (patch)
treeeda5de9494b819235616e8623bb3393e9cc373af /vendor/symfony/console/ConsoleEvents.php
parent2c72a283f2d51034f85f4e2ca8b194d304a3c433 (diff)
Kanboard requires at least PHP 5.6 now
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';
}