From 525deadc804f27e9f2ff6f54665a5fdfd4065d58 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 21 Aug 2023 20:26:56 +0200 Subject: [PATCH] Update calling_commands.rst - call the command non interactively https://github.com/symfony/symfony/issues/51339 --- console/calling_commands.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/calling_commands.rst b/console/calling_commands.rst index 7780fca467e..349f1357682 100644 --- a/console/calling_commands.rst +++ b/console/calling_commands.rst @@ -36,6 +36,9 @@ method):: '--yell' => true, ]); + // disable interactive behavior for the greet command + $greetInput->setInteractive(false); + $returnCode = $this->getApplication()->doRun($greetInput, $output); // ...