8000 [Console] Correct Command::initialize() and InputInterface::bind() ph… · symfony/symfony@b1aff99 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1aff99

Browse files
author
Robin Chalas
committed
[Console] Correct Command::initialize() and InputInterface::bind() phpdoc regarding thrown exceptions
1 parent f408a67 commit b1aff99

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,14 @@ protected function interact(InputInterface $input, OutputInterface $output)
163163
}
164164

165165
/**
166-
* Initializes the command just after the input has been validated.
166+
* Initializes the command after the input has been bound and before the input
167+
* is validated.
167168
*
168169
* This is mainly useful when a lot of commands extends one main command
169170
* where some things need to be initialized based on the input arguments and options.
171+
*
172+
* @see InputInterface::bind()
173+
* @see InputInterface::validate()
170174
*/
171175
protected function initialize(InputInterface $input, OutputInterface $output)
172176
{

src/Symfony/Component/Console/Input/InputInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public function getParameterOption($values, $default = false);
5959

6060
/**
6161
* Binds the current Input instance with the given arguments and options.
62+
*
63+
* @throws RuntimeException
6264
*/
6365
public function bind(InputDefinition $definition);
6466

0 commit comments

Comments
 (0)
0