Aucune description

ConsoleEvents.php 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Console;
  11. /**
  12. * Contains all events dispatched by an Application.
  13. *
  14. * @author Francesco Levorato <git@flevour.net>
  15. */
  16. final class ConsoleEvents
  17. {
  18. /**
  19. * The COMMAND event allows you to attach listeners before any command is
  20. * executed by the console. It also allows you to modify the command, input and output
  21. * before they are handled to the command.
  22. *
  23. * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
  24. *
  25. * @var string
  26. */
  27. const COMMAND = 'console.command';
  28. /**
  29. * The TERMINATE event allows you to attach listeners after a command is
  30. * executed by the console.
  31. *
  32. * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
  33. *
  34. * @var string
  35. */
  36. const TERMINATE = 'console.terminate';
  37. /**
  38. * The EXCEPTION event occurs when an uncaught exception appears.
  39. *
  40. * This event allows you to deal with the exception or
  41. * to modify the thrown exception.
  42. *
  43. * @Event("Symfony\Component\Console\Event\ConsoleExceptionEvent")
  44. *
  45. * @var string
  46. */
  47. const EXCEPTION = 'console.exception';
  48. }