[Console] Correct Command::initialize() and InputInterface::bind() phpdoc regarding thrown exceptions
This commit is contained in:
parent
f408a676c5
commit
b1aff9993c
@ -163,10 +163,14 @@ class Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the command just after the input has been validated.
|
* Initializes the command after the input has been bound and before the input
|
||||||
|
* is validated.
|
||||||
*
|
*
|
||||||
* This is mainly useful when a lot of commands extends one main command
|
* This is mainly useful when a lot of commands extends one main command
|
||||||
* where some things need to be initialized based on the input arguments and options.
|
* where some things need to be initialized based on the input arguments and options.
|
||||||
|
*
|
||||||
|
* @see InputInterface::bind()
|
||||||
|
* @see InputInterface::validate()
|
||||||
*/
|
*/
|
||||||
protected function initialize(InputInterface $input, OutputInterface $output)
|
protected function initialize(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
|
@ -59,6 +59,8 @@ interface InputInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Binds the current Input instance with the given arguments and options.
|
* Binds the current Input instance with the given arguments and options.
|
||||||
|
*
|
||||||
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function bind(InputDefinition $definition);
|
public function bind(InputDefinition $definition);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user