Skip to content

Commit 40d970d

Browse files
committed
[Console] Improve Command::interact() method description
1 parent 8bf8b11 commit 40d970d

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)