From 57e705e6d42c53dd177f701268a5b064c47a17bf Mon Sep 17 00:00:00 2001 From: Murl080 <141338078+Murl080@users.noreply.github.com> Date: Tue, 16 Sep 2025 15:37:03 +0200 Subject: [PATCH 1/2] Use correct function to add autoDiscovered commands --- en/console-commands.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/console-commands.rst b/en/console-commands.rst index c1c7ac09ee..1d2e75a978 100644 --- a/en/console-commands.rst +++ b/en/console-commands.rst @@ -117,7 +117,7 @@ You can customize the command names by defining each command in your plugin:: } When overriding the ``console()`` hook in your application, remember to -call ``$commands->autoDiscover()`` to add commands from CakePHP, your +call ``$commands->addMany($commands->autoDiscover());`` to add commands from CakePHP, your application, and plugins. If you need to rename/remove any attached commands, you can use the From 4782ef21f26191c02a83685f08760db4d9535d54 Mon Sep 17 00:00:00 2001 From: Murl080 <141338078+Murl080@users.noreply.github.com> Date: Tue, 16 Sep 2025 15:43:05 +0200 Subject: [PATCH 2/2] Typo --- en/console-commands.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/console-commands.rst b/en/console-commands.rst index 1d2e75a978..15a3a29a6d 100644 --- a/en/console-commands.rst +++ b/en/console-commands.rst @@ -117,7 +117,7 @@ You can customize the command names by defining each command in your plugin:: } When overriding the ``console()`` hook in your application, remember to -call ``$commands->addMany($commands->autoDiscover());`` to add commands from CakePHP, your +call ``$commands->addMany($commands->autoDiscover())`` to add commands from CakePHP, your application, and plugins. If you need to rename/remove any attached commands, you can use the