Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Console] Allow setting aliases & hidden via command name passed to the constructor#60739
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Console] Allow setting aliases & hidden via command name passed to the constructor#60739
Uh oh!
There was an error while loading.Please reload this page.
Conversation
chalasr commentedJun 7, 2025
I think not supporting it was done on purpose at the time as that special syntax was specifically introduced for |
HypeMC commentedJun 7, 2025
@chalasr If that's the case, then it currently works as expected on all versions. The problem in#60394 is that I started using this for cases that don't include the Of course, this isn't the only possible approach, but I personally prefer this one since it doesn't require duplicating the alias handling logic in yet another place. That logic already exists in the |
270e21b toc37baa8Comparec37baa8 to03d612aComparenicolas-grekas commentedJun 8, 2025
Thank you@HypeMC. |
f24ffa0 intosymfony:7.4Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Currently, setting an alias and/or marking a command as hidden via the name doesn't work when the name is passed as a constructor argument. For example:
This issue was noticed while working on#60394 as mentioned in the comment there:#60394 (comment).