Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConsoleEvent.php

class ConsoleEvent

Allows to inspect input and output of a command.

@author Francesco Levorato <git@flevour.net>

Hierarchy

  • class \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
    • class \Symfony\Component\Console\Event\ConsoleEvent extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of ConsoleEvent

2 files declare their use of ConsoleEvent
DebugHandlersListener.php in vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php
ErrorListener.php in vendor/symfony/console/EventListener/ErrorListener.php

File

vendor/symfony/console/Event/ConsoleEvent.php, line 24

Namespace

Symfony\Component\Console\Event
View source
class ConsoleEvent extends Event {
    public function __construct(?Command $command, InputInterface $input, OutputInterface $output) {
    }
    
    /**
     * Gets the command that is executed.
     */
    public function getCommand() : ?Command {
        return $this->command;
    }
    
    /**
     * Gets the input instance.
     */
    public function getInput() : InputInterface {
        return $this->input;
    }
    
    /**
     * Gets the output instance.
     */
    public function getOutput() : OutputInterface {
        return $this->output;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
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 4
Event::$propagationStopped private property
Event::isPropagationStopped public function Is propagation stopped? Overrides StoppableEventInterface::isPropagationStopped
Event::stopPropagation public function Stops the propagation of the event to further event listeners. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal