You are here

class ConsoleEvent in Zircon Profile 8

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

Allows to inspect input and output of a command.

@author Francesco Levorato <git@flevour.net>

Hierarchy

  • class \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ConsoleEvent

2 files declare their use of ConsoleEvent
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/Event/ConsoleEvent.php, line 24

Namespace

Symfony\Component\Console\Event
View source
class ConsoleEvent extends Event {
  protected $command;
  private $input;
  private $output;
  public function __construct(Command $command, InputInterface $input, OutputInterface $output) {
    $this->command = $command;
    $this->input = $input;
    $this->output = $output;
  }

  /**
   * Gets the command that is executed.
   *
   * @return Command A Command instance
   */
  public function getCommand() {
    return $this->command;
  }

  /**
   * Gets the input instance.
   *
   * @return InputInterface An InputInterface instance
   */
  public function getInput() {
    return $this->input;
  }

  /**
   * Gets the output instance.
   *
   * @return OutputInterface An OutputInterface instance
   */
  public function getOutput() {
    return $this->output;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConsoleEvent::$command protected property
ConsoleEvent::$input private property
ConsoleEvent::$output private property
ConsoleEvent::getCommand public function Gets the command that is executed.
ConsoleEvent::getInput public function Gets the input instance.
ConsoleEvent::getOutput public function Gets the output instance.
ConsoleEvent::__construct public function 2
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher Deprecated public function Returns the EventDispatcher that dispatches this Event.
Event::getName Deprecated public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::setDispatcher Deprecated public function Stores the EventDispatcher that dispatches this Event.
Event::setName Deprecated public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.