class ConsoleEvent in Zircon Profile 8
Same name and namespace in other branches
- 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
- class \Symfony\Component\Console\Event\ConsoleEvent
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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConsoleEvent:: |
protected | property | ||
ConsoleEvent:: |
private | property | ||
ConsoleEvent:: |
private | property | ||
ConsoleEvent:: |
public | function | Gets the command that is executed. | |
ConsoleEvent:: |
public | function | Gets the input instance. | |
ConsoleEvent:: |
public | function | Gets the output instance. | |
ConsoleEvent:: |
public | function | 2 | |
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. |