Skip to content

Commit c7e7fdc

Browse files
authored
Merge pull request #8088 from Murl080/patch-2
Use correct function to add autoDiscovered commands in documentation
2 parents 4c70be0 + 4782ef2 commit c7e7fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/console-commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ You can customize the command names by defining each command in your plugin::
117117
}
118118

119119
When overriding the ``console()`` hook in your application, remember to
120-
call ``$commands->autoDiscover()`` to add commands from CakePHP, your
120+
call ``$commands->addMany($commands->autoDiscover())`` to add commands from CakePHP, your
121121
application, and plugins.
122122

123123
If you need to rename/remove any attached commands, you can use the

0 commit comments

Comments
 (0)