Skip to content

Commit 40b1763

Browse files
committed
minor #18731 [Console] Improve Command::interact() method description (HeahDude)
This PR was merged into the 5.4 branch. Discussion ---------- [Console] Improve `Command::interact()` method description Commits ------- 40d970d [Console] Improve `Command::interact()` method description
2 parents ea432f9 + 40d970d commit 40b1763

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

console.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,10 @@ command:
461461
This method is executed after ``initialize()`` and before ``execute()``.
462462
Its purpose is to check if some of the options/arguments are missing
463463
and interactively ask the user for those values. This is the last place
464-
where you can ask for missing options/arguments. After this command,
465-
missing options/arguments will result in an error.
464+
where you can ask for missing required options/arguments, this method is
465+
called before validating the input.
466+
Note that it will not be called when the command is run without interaction
467+
(e.g. when passing the ``--no-interaction`` global option flag).
466468

467469
:method:`Symfony\\Component\\Console\\Command\\Command::execute` *(required)*
468470
This method is executed after ``interact()`` and ``initialize()``.

0 commit comments

Comments
 (0)