Skip to content

Commit d86b33e

Browse files
committed
minor #18776 Update calling_commands.rst - call the command non interactively (Chris53897)
This PR was merged into the 6.4 branch. Discussion ---------- Update calling_commands.rst - call the command non interactively symfony/symfony#51339 I am not sure which branch to chose. It is not a bug, not a new feature. https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/Console/Input/Input.php#L83 Commits ------- 525dead Update calling_commands.rst - call the command non interactively
2 parents fdd5743 + 525dead commit d86b33e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

console/calling_commands.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ method)::
3636
'--yell' => true,
3737
]);
3838

39+
// disable interactive behavior for the greet command
40+
$greetInput->setInteractive(false);
41+
3942
$returnCode = $this->getApplication()->doRun($greetInput, $output);
4043

4144
// ...

0 commit comments

Comments
 (0)