Skip to content

Commit 98bb452

Browse files
authored
Update calling_commands.rst - call the command non interactively
symfony/symfony#51339
1 parent 66a8003 commit 98bb452

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

console/calling_commands.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ method)::
4949
:class:`Symfony\\Component\\Console\\Output\\NullOutput` as the second
5050
argument to ``$command->run()``.
5151

52+
53+
.. tip::
54+
55+
If you want to call the command non interactively (from a console that is capable of that), you have to set it manual on the ``Input`` object ``$greetInput->setInteractive(false);``.
56+
5257
.. caution::
5358

5459
Note that all the commands will run in the same process and some of Symfony's

0 commit comments

Comments
 (0)