class CommandInteractEvent in Update helper 8
Same name and namespace in other branches
- 2.x src/Events/CommandInteractEvent.php \Drupal\update_helper\Events\CommandInteractEvent
Event for command interactive.
@package Drupal\update_helper\Events
Hierarchy
- class \Drupal\update_helper\Events\CommandInteractEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of CommandInteractEvent
2 files declare their use of CommandInteractEvent
- CommandGcuSubscriber.php in modules/
update_helper_checklist/ src/ Events/ CommandGcuSubscriber.php - GenerateConfigurationUpdateCommand.php in src/
Command/ GenerateConfigurationUpdateCommand.php
File
- src/
Events/ CommandInteractEvent.php, line 15
Namespace
Drupal\update_helper\EventsView source
class CommandInteractEvent extends Event {
/**
* Console command for this event.
*
* @var \Drupal\Console\Core\Command\Command
*/
protected $command;
/**
* Input interface for command.
*
* @var \Symfony\Component\Console\Input\InputInterface
*/
protected $input;
/**
* Output interface.
*
* @var \Symfony\Component\Console\Output\OutputInterface
*/
protected $output;
/**
* Command interact event constructor.
*
* @param \Drupal\Console\Core\Command\Command $command
* Command that for which this event is triggered.
* @param \Symfony\Component\Console\Input\InputInterface $input
* Input interface.
* @param \Symfony\Component\Console\Output\OutputInterface $output
* Output interface.
*/
public function __construct(Command $command, InputInterface $input, OutputInterface $output) {
$this->command = $command;
$this->input = $input;
$this->output = $output;
}
/**
* Command that for what this event is triggered.
*
* @return \Drupal\Console\Core\Command\Command
* Returns command.
*/
public function getCommand() {
return $this->command;
}
/**
* Get console command input.
*
* @return \Symfony\Component\Console\Input\InputInterface
* Input interface for command.
*/
public function getInput() {
return $this->input;
}
/**
* Get console command output.
*
* @return \Symfony\Component\Console\Output\OutputInterface
* Output interface for command.
*/
public function getOutput() {
return $this->output;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommandInteractEvent:: |
protected | property | Console command for this event. | |
CommandInteractEvent:: |
protected | property | Input interface for command. | |
CommandInteractEvent:: |
protected | property | Output interface. | |
CommandInteractEvent:: |
public | function | Command that for what this event is triggered. | |
CommandInteractEvent:: |
public | function | Get console command input. | |
CommandInteractEvent:: |
public | function | Get console command output. | |
CommandInteractEvent:: |
public | function | Command interact event constructor. |