Class Symfony\Component\Console\Event\ConsoleEvent

InheritanceSymfony\Component\Console\Event\ConsoleEvent » Symfony\Component\EventDispatcher\Event
SubclassesSymfony\Component\Console\Event\ConsoleCommandEvent, Symfony\Component\Console\Event\ConsoleExceptionEvent, Symfony\Component\Console\Event\ConsoleTerminateEvent

Allows to inspect input and output of a command.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$command Symfony\Component\Console\Event\ConsoleEvent

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Symfony\Component\Console\Event\ConsoleEvent
getCommand() Gets the command that is executed. Symfony\Component\Console\Event\ConsoleEvent
getDispatcher() Returns the EventDispatcher that dispatches this Event. Symfony\Component\EventDispatcher\Event
getInput() Gets the input instance. Symfony\Component\Console\Event\ConsoleEvent
getName() Gets the event's name. Symfony\Component\EventDispatcher\Event
getOutput() Gets the output instance. Symfony\Component\Console\Event\ConsoleEvent
isPropagationStopped() Returns whether further event listeners should be triggered. Symfony\Component\EventDispatcher\Event
setDispatcher() Stores the EventDispatcher that dispatches this Event. Symfony\Component\EventDispatcher\Event
setName() Sets the event's name property. Symfony\Component\EventDispatcher\Event
stopPropagation() Stops the propagation of the event to further event listeners. Symfony\Component\EventDispatcher\Event

Property Details

$command protected property
protected $command null

Method Details

__construct() public method

public void __construct ( Symfony\Component\Console\Command\Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$command
$input
$output
getCommand() public method

Gets the command that is executed.

public Symfony\Component\Console\Command\Command getCommand ( )
return Symfony\Component\Console\Command\Command

A Command instance

getInput() public method

Gets the input instance.

public Symfony\Component\Console\Input\InputInterface getInput ( )
return Symfony\Component\Console\Input\InputInterface

An InputInterface instance

getOutput() public method

Gets the output instance.

public Symfony\Component\Console\Output\OutputInterface getOutput ( )
return Symfony\Component\Console\Output\OutputInterface

An OutputInterface instance