-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Console - make:subscriber - interactive mode autocomplete - bug #26321
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
Rewriting the same function, this is my suggestion and not well tested :
|
Do you want to provide a pull request directly ? |
Fixed by #26875. |
Uh oh!
There was an error while loading. Please reload this page.
Description :
Using the command make:subscriber with an event suscriber kernel.controller on the interactive mode (Responding to the 'What event do you want to subscribe to?' question).
Submited : kernel.controller
Result : kernel.controller_arguments
Console :
Result :
Bug caused by :
When puting an Enter character on the console, a last check is made to verify even the character is a new line \n or a tabulation \t, then choose the returned autocomplete from the matches array with an $ofs = 0 which return $matches[0] = 'kernel.controller_arguments on the following lines :
symfony/src/Symfony/Component/Console/Helper/QuestionHelper.php
Lines 235 to 239 in cd5f410
The text was updated successfully, but these errors were encountered: