From 38e7b72371237043b19c15486befd806cd1ad614 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Sat, 14 Feb 2015 14:55:30 +0100 Subject: [PATCH] [Console] Added a little explaination about Command#interact() --- src/Symfony/Component/Console/Command/Command.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index 47e8432890..29625a26da 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -175,6 +175,10 @@ class Command /** * Interacts with the user. * + * This method is executed before the InputDefinition is validated. + * This means that this is the only place where the command can + * interactively ask for values of missing required arguments. + * * @param InputInterface $input An InputInterface instance * @param OutputInterface $output An OutputInterface instance */