1. 8.5.x vendor/symfony/console/ConsoleEvents.php
  2. 8.0.x vendor/symfony/console/ConsoleEvents.php
  3. 8.1.x vendor/symfony/console/ConsoleEvents.php
  4. 8.2.x vendor/symfony/console/ConsoleEvents.php
  5. 8.3.x vendor/symfony/console/ConsoleEvents.php
  6. 8.4.x vendor/symfony/console/ConsoleEvents.php
  7. 8.6.x vendor/symfony/console/ConsoleEvents.php

Namespace

Symfony\Component\Console

File

vendor/symfony/console/ConsoleEvents.php
View source
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Symfony\Component\Console;


/**
 * Contains all events dispatched by an Application.
 *
 * @author Francesco Levorato <git@flevour.net>
 */
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';

}

Classes

Namesort descending Description
ConsoleEvents Contains all events dispatched by an Application.