Skip to content

Commit 386ec7b

Browse files
committed
minor #13645 [Console] Remove invalid argument (apfelbox)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Console] Remove invalid argument <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Passing in the command is only valid when passing the arguments to the application (https://symfony.com/doc/current/console/command_in_controller.html), not if we directly call the command. This would currently result in an `InvalidArgumentException: The "command" argument does not exist.` Commits ------- d242734 Fix invalid argument
2 parents f7eb91c + d242734 commit 386ec7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

console/calling_commands.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Calling a command from another one is straightforward::
2020
$command = $this->getApplication()->find('demo:greet');
2121

2222
$arguments = [
23-
'command' => 'demo:greet',
2423
'name' => 'Fabien',
2524
'--yell' => true,
2625
];

0 commit comments

Comments
 (0)