Skip to content

Commit 06b180c

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Console] Improve `Command::interact()` method description
2 parents 31a7491 + 43cfc34 commit 06b180c

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
@@ -462,8 +462,10 @@ command:
462462
This method is executed after ``initialize()`` and before ``execute()``.
463463
Its purpose is to check if some of the options/arguments are missing
464464
and interactively ask the user for those values. This is the last place
465-
where you can ask for missing options/arguments. After this command,
466-
missing options/arguments will result in an error.
465+
where you can ask for missing required options/arguments. This method is
466+
called before validating the input.
467+
Note that it will not be called when the command is run without interaction
468+
(e.g. when passing the ``--no-interaction`` global option flag).
467469

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

0 commit comments

Comments
 (0)