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

[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

Merged
fabpot merged 1 commit intosymfony:7.1fromVincentLanglet:terminated
Nov 23, 2023

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLangletVincentLanglet commentedOct 18, 2023
edited by nicolas-grekas
Loading

QA
Branch?7.1
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#51912
LicenseMIT

Copy link
Member

@nicolas-grekasnicolas-grekas left a 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.

@VincentLangletVincentLanglet changed the titleIntroduce isTerminated method to skip error rendering when kernel is terminatedIntroduce ExceptionEvent::isKernelTerminated method to skip error rendering when kernel is terminatedOct 18, 2023
@VincentLanglet
Copy link
ContributorAuthor

I likely misunderstood your proposal but I was expecting the new method on classExceptionEvent.

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

@carsonbotcarsonbot changed the titleIntroduce ExceptionEvent::isKernelTerminated method to skip error rendering when kernel is terminated[HttpKernel] Introduce ExceptionEvent::isKernelTerminated method to skip error rendering when kernel is terminatedOct 18, 2023
@nicolas-grekas
Copy link
Member

Don't miss adding a line to the changelog of the component.

@VincentLanglet
Copy link
ContributorAuthor

Don't miss adding a line to the changelog of the component.

Should it be in the 6.4 changelog or should I create a 7.1 one ?

@nicolas-grekas
Copy link
Member

7.1 indeed now

@nicolas-grekasnicolas-grekas changed the title[HttpKernel] Introduce ExceptionEvent::isKernelTerminated method to skip error rendering when kernel is terminated[HttpKernel] IntroduceExceptionEvent::isKernelTerminating() to skip error rendering when kernel is terminatingOct 18, 2023
@VincentLangletVincentLangletforce-pushed theterminated branch 2 times, most recently from76d7513 to5a1ecf8CompareOctober 18, 2023 10:22
…p error rendering when kernel is terminating
@fabpot
Copy link
Member

Thank you@VincentLanglet.

@fabpotfabpot merged commit638f7d0 intosymfony:7.1Nov 23, 2023
HttpKernel
----------

*`ExceptionEvent` now takes an optional`$isKernelTerminating` parameter
Copy link
Contributor

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?

nicolas-grekas added a commit that referenced this pull requestNov 24, 2023
…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
@fabpotfabpot mentioned this pull requestMay 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.1

Development

Successfully merging this pull request may close these issues.

[HttpKernel] ErrorListener::onKernelException should ignore exception thrown afterkernel.terminate

5 participants

@VincentLanglet@nicolas-grekas@fabpot@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp