Skip to content

Commit 38e7b72

Browse files
wouterjfabpot
authored andcommitted
[Console] Added a little explaination about Command#interact()
1 parent f77d710 commit 38e7b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
175175
/**
176176
* Interacts with the user.
177177
*
178+
* This method is executed before the InputDefinition is validated.
179+
* This means that this is the only place where the command can
180+
* interactively ask for values of missing required arguments.
181+
*
178182
* @param InputInterface $input An InputInterface instance
179183
* @param OutputInterface $output An OutputInterface instance
180184
*/

0 commit comments

Comments
 (0)