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] Fixed fatal error when the command is not defined#22144
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lyrixx commentedMar 24, 2017
| Q | A |
|---|---|
| Branch? | master |
| Bug fix? | yes |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | https://github.com/symfony/symfony/pull/18140/files#r107871406 |
| License | MIT |
| Doc PR |
fabpot commentedMar 24, 2017
@lyrixx Can you add a tests to avoid regressions? |
wouterj commentedMar 25, 2017
I think we should also trigger this event when CommandNotFound exceptions are thrown. What about allowing |
chalasr commentedMar 25, 2017
+1 for having the event fired on command not found. As there is currently no working case where the command is null I think it's safe to make it nullable in this specific event. |
fabpot commentedMar 25, 2017
Thank you@lyrixx. |
…d (lyrixx)This PR was merged into the 3.3-dev branch.Discussion----------[Console] Fixed fatal error when the command is not defined| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |https://github.com/symfony/symfony/pull/18140/files#r107871406| License | MIT| Doc PR |Commits-------d5b41b6 [Console] Fixed fatal error when the command is not defined
…lasr)This PR was merged into the 3.3-dev branch.Discussion----------[Console] Allow to catch CommandNotFoundException| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#22144 (comment)| License | MIT| Doc PR | n/aBasically reverts#22144, making the command argument optional in console.error event instead, so that `CommandNotFoundException` can be handled as any other console error.Commits-------b21ce85 [Console] Allow to catch CommandNotFoundException
…lasr)This PR was merged into the 3.3-dev branch.Discussion----------[Console] Allow to catch CommandNotFoundException| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony#22144 (comment)| License | MIT| Doc PR | n/aBasically reverts #22144, making the command argument optional in console.error event instead, so that `CommandNotFoundException` can be handled as any other console error.Commits-------b21ce850e7 [Console] Allow to catch CommandNotFoundException