Skip to content

Commit 60358e4

Browse files
SetDefaultCommand first arg is command name
1 parent 64e9bbe commit 60358e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/single_command_tool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Of course, you can still register a command as usual::
5353
5454
$application->add($command);
5555
56-
$application->setDefaultCommand($command, true);
56+
$application->setDefaultCommand($command->getName(), true);
5757
$application->run();
5858
5959
.. tip::

0 commit comments

Comments
 (0)