8000 minor #13691 [Console] Added a little explaination about Command#inte… · symfony/symfony@90b028b · GitHub
[go: up one dir, main page]

Skip to content

Commit 90b028b

Browse files
committed
minor #13691 [Console] Added a little explaination about Command#interact() (WouterJ)
This PR was squashed before being merged into the 2.3 branch (closes #13691). Discussion ---------- [Console] Added a little explaination about Command#interact() This has confused some long time Symfony users recently: https://twitter.com/jmolivas/status/566283453264850945 | Q | A | ------------- | --- | Fixed tickets | - | License | MIT Commits ------- 38e7b72 [Console] Added a little explaination about Command#interact()
2 parents f182809 + 38e7b72 commit 90b028b

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)
0