You are here

final class ConsoleEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/ConsoleEvents.php \Symfony\Component\Console\ConsoleEvents

Contains all events dispatched by an Application.

@author Francesco Levorato <git@flevour.net>

Hierarchy

Expanded class hierarchy of ConsoleEvents

2 files declare their use of ConsoleEvents
DebugHandlersListener.php in vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php
DebugHandlersListenerTest.php in vendor/symfony/http-kernel/Tests/EventListener/DebugHandlersListenerTest.php

File

vendor/symfony/console/ConsoleEvents.php, line 19

Namespace

Symfony\Component\Console
View source
final class ConsoleEvents {

  /**
   * The COMMAND event allows you to attach listeners before any command is
   * 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
   */
  const COMMAND = 'console.command';

  /**
   * 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
   */
  const TERMINATE = 'console.terminate';

  /**
   * The EXCEPTION event occurs when an uncaught exception appears.
   *
   * 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.
   *
   * @Event
   *
   * @var string
   */
  const EXCEPTION = 'console.exception';

}

Members

Namesort descending Modifiers Type Description Overrides
ConsoleEvents::COMMAND constant The COMMAND event allows you to attach listeners before any command is executed by the console. It also allows you to modify the command, input and output before they are handled to the command.
ConsoleEvents::EXCEPTION constant The EXCEPTION event occurs when an uncaught exception appears.
ConsoleEvents::TERMINATE constant The TERMINATE event allows you to attach listeners after a command is executed by the console.