|
|
@ -27,16 +27,23 @@ class PreCommandRunEvent extends Event
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private $input;
|
|
|
|
private $input;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @var string
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private $command;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
* Constructor.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param string $name The event name
|
|
|
|
* @param string $name The event name
|
|
|
|
* @param InputInterface $input
|
|
|
|
* @param InputInterface $input
|
|
|
|
|
|
|
|
* @param string $command The command about to be executed
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function __construct($name, InputInterface $input)
|
|
|
|
public function __construct($name, InputInterface $input, $command)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
parent::__construct($name);
|
|
|
|
parent::__construct($name);
|
|
|
|
$this->input = $input;
|
|
|
|
$this->input = $input;
|
|
|
|
|
|
|
|
$this->command = $command;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -48,4 +55,14 @@ class PreCommandRunEvent extends Event
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $this->input;
|
|
|
|
return $this->input;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns the command about to be executed
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return string
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function getCommand()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->command;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|