Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 386ec7b

Browse filesBrowse 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
Copy full SHA for 386ec7b

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed

‎console/calling_commands.rst

Copy file name to clipboardExpand all lines: console/calling_commands.rst
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.