Skip to content

Use correct function to add autoDiscovered commands in documentation#8088

Merged
markstory merged 2 commits into
cakephp:4.xfrom
Murl080:patch-2
Sep 17, 2025
Merged

Use correct function to add autoDiscovered commands in documentation#8088
markstory merged 2 commits into
cakephp:4.xfrom
Murl080:patch-2

Conversation

@Murl080
Copy link
Copy Markdown
Contributor

@Murl080 Murl080 commented Sep 16, 2025

We noticed that $commands->autoDiscover() only finds the commands and doesn't add them like the documentation says, which may be misleading. To add the discovered commands you have to do $commands->addMany($commands->autoDiscover())

@markstory markstory merged commit c7e7fdc into cakephp:4.x Sep 17, 2025
3 checks passed
@markstory markstory added this to the 4.x milestone Sep 17, 2025
@markstory
Copy link
Copy Markdown
Member

Thank you 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants