Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] IntroduceExceptionEvent::isKernelTerminating() to skip error rendering when kernel is terminating#52128
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
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I likely misunderstood your proposal but I was expecting the new method on classExceptionEvent.
VincentLanglet commentedOct 18, 2023
Indeed I thought about it first, then I saw the kernel was accessible in the ExceptionEvent, this would have avoid an extra param. Also, it would have avoid having to think about passing both the kernel and the terminated state. I updated the PR to follow this strategy if it's preferred@nicolas-grekas |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedOct 18, 2023
Don't miss adding a line to the changelog of the component. |
VincentLanglet commentedOct 18, 2023
Should it be in the 6.4 changelog or should I create a 7.1 one ? |
nicolas-grekas commentedOct 18, 2023
7.1 indeed now |
src/Symfony/Component/HttpKernel/Tests/EventListener/ErrorListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/HttpKernel/Tests/EventListener/ErrorListenerTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ExceptionEvent::isKernelTerminating() to skip error rendering when kernel is terminating76d7513 to5a1ecf8CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…p error rendering when kernel is terminating
fabpot commentedNov 23, 2023
Thank you@VincentLanglet. |
| HttpKernel | ||
| ---------- | ||
| *`ExceptionEvent` now takes an optional`$isKernelTerminating` parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Shouldn't we add this to the CHANGELOG instead to the upgrade guide, as this is an optional one?
…er than the upgrade files (xabbuh)This PR was merged into the 7.1 branch.Discussion----------[HttpKernel] document added method in the changelog rather than the upgrade files| Q | A| ------------- | ---| Branch? | 7.1| Bug fix? | no| New feature? | no| Deprecations? | no| Issues |#52128 (comment)| License | MITCommits-------d77db34 document added method in the changelog rather than the upgrade files
Uh oh!
There was an error while loading.Please reload this page.