-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Console] Commands with an alias should not be recognized as ambiguous when using register #31261
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
[Console] Commands with an alias should not be recognized as ambiguous when using register #31261
Conversation
|
Travis and Appveyor failure are not related. |
|
2.8 is not maintained since a few months now, can you please rebase/retarget 3.4? |
4a38b3c to
b97f7fa
Compare
7970690 to
f375167
Compare
|
cc @chalasr |
|
AppVeyor Failure is not related. |
fa68f1f to
d56b88c
Compare
|
Status: Needs Review |
|
@chalasr ready for another round of review |
chalasr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the bugfix part.
|
@chalasr done Status: Needs Review. |
d56b88c to
ae7ee46
Compare
|
Thank you @Simperfit. |
…as ambiguous when using register (Simperfit) This PR was merged into the 3.4 branch. Discussion ---------- [Console] Commands with an alias should not be recognized as ambiguous when using register | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25355 | License | MIT | Doc PR | I think when passing an alias, it should not be treated as a ambiguous command since it's configured to response to it. I've [pushed a commit](Simperfit/symfony-reproducer@2f5209a) that reproduce the bug and with this patch it does work. Commits ------- ae7ee46 [Console] Commands with an alias should not be recognized as ambiguous
…(Simperfit) This PR was submitted for the 4.3 branch but it was merged into the 4.4-dev branch instead (closes #31420). Discussion ---------- [Console] optimisation getting the command when finding | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | none <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Following discussion with @chalasr in here #31261 (comment), first commit will be deleted when the other PR is merged. Commits ------- 3d6b303 [Console] Optimisation on getting the command
I think when passing an alias, it should not be treated as a ambiguous command since it's configured to response to it.
I've pushed a commit that reproduce the bug and with this patch it does work.