-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Not possible to have a default command. #8058
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
Comments
You'd like to replace default |
Well yes and no, the list command does not come from |
Okay, what's the point of your issue, you want to be able to change default command by overriding |
http://d.pr/i/Vgwk is the error, wanted to remove the hack of changing the default command. if a setDefaultCommand is introduced i would use that. |
Did you consider overriding |
Dosent work either :) |
I guess this is related: #9564 |
* Added new method `setDefaultCommand` and changed the logic in the doRun method in order to allow it to run by default a Command setted by the user instead of the `ListCommand` * Added tests * Should fix symfony#8058
* Added new method `setDefaultCommand` and changed the logic in the doRun method in order to allow it to run by default a Command setted by the user instead of the `ListCommand` * Added tests * Should fix symfony#8058 * Updated CHANGELOG
* Added new method `setDefaultCommand` and changed the logic in the doRun method in order to allow it to run by default a Command setted by the user instead of the `ListCommand` * Added tests * Should fix symfony#8058 * Updated CHANGELOG
* Added new method `setDefaultCommand` and changed the logic in the doRun method in order to allow it to run by default a Command setted by the user instead of the `ListCommand` * Added tests * Should fix symfony#8058 * Updated CHANGELOG
…ult command (danielcsgomes) This PR was squashed before being merged into the 2.5-dev branch (closes #9776). Discussion ---------- [Console] Added the possibility to set a different default command I am not quite sure if this is the best approach to solve the issue but the solution I provide works. Let me know your suggestions to improve it. | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #8058 | License | MIT | Doc PR | symfony/symfony-docs#3426 Commits ------- 418de05 [Console] Added the possibility to set a different default command
Today it is not possible to have another name returned from
getCommandName
because it will merge a default defintion wherecommand
argument is required. Also it is not possible to circumvent this by adding the argument to the input as it happens later when the command is bound.The text was updated successfully, but these errors were encountered: