From 40d970d6d895760bd0558e22116eb19b5467366f Mon Sep 17 00:00:00 2001 From: Jules Pietri Date: Thu, 10 Aug 2023 11:36:09 +0200 Subject: [PATCH] [Console] Improve `Command::interact()` method description --- console.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/console.rst b/console.rst index 4078bfc221d..fb6fdd4b36f 100644 --- a/console.rst +++ b/console.rst @@ -461,8 +461,10 @@ command: This method is executed after ``initialize()`` and before ``execute()``. Its purpose is to check if some of the options/arguments are missing and interactively ask the user for those values. This is the last place - where you can ask for missing options/arguments. After this command, - missing options/arguments will result in an error. + where you can ask for missing required options/arguments, this method is + called before validating the input. + Note that it will not be called when the command is run without interaction + (e.g. when passing the ``--no-interaction`` global option flag). :method:`Symfony\\Component\\Console\\Command\\Command::execute` *(required)* This method is executed after ``interact()`` and ``initialize()``.