Symfony\Component\Console\Event\ConsoleCommandEvent
Allows to do things before the command is executed.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ConsoleCommandEvent
extends ConsoleEvent
{
- // Inherited members from ConsoleEvent
- protected $command;
- // Inherited methods from ConsoleEvent
- public void __construct()
- public Command getCommand()
- public InputInterface getInput()
- public OutputInterface getOutput()
- // Inherited methods from Event
- public Boolean isPropagationStopped()
- public void stopPropagation()
- public void setDispatcher()
- public EventDispatcherInterface getDispatcher()
- public string getName()
- public void setName()
Hierarchy
Members
protected
- $command
Methods
Inherited from Symfony\Component\Console\Event\ConsoleEvent
public
- getCommand() — Gets the command that is executed.
- getInput() — Gets the input instance.
- getOutput() — Gets the output instance.
Inherited from Symfony\Component\EventDispatcher\Event
public
- getDispatcher() — Returns the EventDispatcher that dispatches this Event
- getName() — Gets the event's name.
- isPropagationStopped() — Returns whether further event listeners should be triggered.
- setDispatcher() — Stores the EventDispatcher that dispatches this Event
- setName() — Sets the event's name property.
- stopPropagation() — Stops the propagation of the event to further event listeners.