annotate vendor/symfony/console/ConsoleEvents.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /*
Chris@0 4 * This file is part of the Symfony package.
Chris@0 5 *
Chris@0 6 * (c) Fabien Potencier <fabien@symfony.com>
Chris@0 7 *
Chris@0 8 * For the full copyright and license information, please view the LICENSE
Chris@0 9 * file that was distributed with this source code.
Chris@0 10 */
Chris@0 11
Chris@0 12 namespace Symfony\Component\Console;
Chris@0 13
Chris@0 14 /**
Chris@0 15 * Contains all events dispatched by an Application.
Chris@0 16 *
Chris@0 17 * @author Francesco Levorato <git@flevour.net>
Chris@0 18 */
Chris@0 19 final class ConsoleEvents
Chris@0 20 {
Chris@0 21 /**
Chris@0 22 * The COMMAND event allows you to attach listeners before any command is
Chris@0 23 * executed by the console. It also allows you to modify the command, input and output
Chris@0 24 * before they are handled to the command.
Chris@0 25 *
Chris@0 26 * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
Chris@0 27 */
Chris@0 28 const COMMAND = 'console.command';
Chris@0 29
Chris@0 30 /**
Chris@0 31 * The TERMINATE event allows you to attach listeners after a command is
Chris@0 32 * executed by the console.
Chris@0 33 *
Chris@0 34 * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
Chris@0 35 */
Chris@0 36 const TERMINATE = 'console.terminate';
Chris@0 37
Chris@0 38 /**
Chris@14 39 * The EXCEPTION event occurs when an uncaught exception appears
Chris@14 40 * while executing Command#run().
Chris@0 41 *
Chris@0 42 * This event allows you to deal with the exception or
Chris@0 43 * to modify the thrown exception.
Chris@0 44 *
Chris@0 45 * @Event("Symfony\Component\Console\Event\ConsoleExceptionEvent")
Chris@0 46 *
Chris@14 47 * @deprecated The console.exception event is deprecated since version 3.3 and will be removed in 4.0. Use the console.error event instead.
Chris@0 48 */
Chris@0 49 const EXCEPTION = 'console.exception';
Chris@14 50
Chris@14 51 /**
Chris@14 52 * The ERROR event occurs when an uncaught exception or error appears.
Chris@14 53 *
Chris@14 54 * This event allows you to deal with the exception/error or
Chris@14 55 * to modify the thrown exception.
Chris@14 56 *
Chris@14 57 * @Event("Symfony\Component\Console\Event\ConsoleErrorEvent")
Chris@14 58 */
Chris@14 59 const ERROR = 'console.error';
Chris@0 60 }