-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Open CompleteCommand for custom outputs #43923
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
Conversation
You should add a test, right? |
bd2cad0
to
d3e4574
Compare
Thanks for the reviews. All should be fixed now. status: needs review |
Can you fix the tests? The output has changed a bit. |
d3e4574
to
1f58312
Compare
Ooh, not again 😣 . Should be green now |
Thank you @wouterj. |
@wouterj as we now make the CompletionOutputInterface an extension point where third-party code can register their own implementation, I think we need to add the constructor with no argument in the interface, to enforce that signature (as the instantiation is done in the CompleteCommand |
Having this feature in 5.4 is especially great, as it will allow Composer 2.2 to use this feature as well.
If we in the future add fish or zsh support, it would be very cool if these can be "backported" by Composer. Keeping the
$completionOutputs
property closed would permit this, while this little change opens up adding custom output supports outside the Symfony source code.