Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: precedence of command classes with the same $name #8898

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented May 17, 2024

Description
This PR changes to use the first command class discovered.

In the current implementation, the last class discovered is executed.
However, for CI4's behavior, if there is a command class in App\Commands, it should take precedence.

See also https://forum.codeigniter.com/showthread.php?tid=90877&pid=418854#pid418854

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Now you can replace CI4's commands with your commands in app/Commands/.
@kenjis kenjis added the bug Verified issues on the current code behavior or pull requests that will fix them label May 17, 2024
@kenjis kenjis marked this pull request as draft May 17, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant