Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:masterfromlyrixx:command-fix-fatal-error
Mar 25, 2017

Conversation

@lyrixx
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketshttps://github.com/symfony/symfony/pull/18140/files#r107871406
LicenseMIT
Doc PR

@fabpot
Copy link
Member

@lyrixx Can you add a tests to avoid regressions?

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneMar 24, 2017
@wouterj
Copy link
Member

I think we should also trigger this event when CommandNotFound exceptions are thrown. What about allowingnull for thecommand inConsoleErrorEvent?

@chalasr
Copy link
Member

+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
Copy link
Member

Thank you@lyrixx.

@fabpotfabpot merged commitd5b41b6 intosymfony:masterMar 25, 2017
fabpot added a commit that referenced this pull requestMar 25, 2017
…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
@lyrixxlyrixx deleted the command-fix-fatal-error branchMarch 26, 2017 15:19
fabpot added a commit that referenced this pull requestApr 5, 2017
…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
symfony-splitter pushed a commit to symfony/console that referenced this pull requestApr 5, 2017
…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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@lyrixx@fabpot@wouterj@chalasr@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp