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] Make ErrorListener unaware of the event dispatcher#35635

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

Conversation

derrabus
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?no
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

Under certain circumstances, HttpKernel'sErrorListener class might dynamically register and unregister a listener with the dispatcher. If our goal is to make the dispatcher immutable, that specific behavior would be in our way. Also,#34988 would break this workflow.

This PR provides an alternative. The listener is always registered, but I'm using the request to piggyback a flag that activates/deactivates the listener.

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.

with one minor comment

@derrabusderrabusforce-pushed theimprovement/make-error-listener-unaware-of-ed branch from8c8ae6f toa9d1dedCompareFebruary 7, 2020 14:36
@derrabus
Copy link
MemberAuthor

Done. The Travis failure looks unrelated.

@fabpot
Copy link
Member

Thank you@derrabus.

fabpot added a commit that referenced this pull requestFeb 8, 2020
…ispatcher (derrabus)This PR was merged into the 5.1-dev branch.Discussion----------[HttpKernel] Make ErrorListener unaware of the event dispatcher| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | N/A| License       | MIT| Doc PR        | N/AUnder certain circumstances, HttpKernel's `ErrorListener` class might dynamically register and unregister a listener with the dispatcher. If our goal is to make the dispatcher immutable, that specific behavior would be in our way. Also,#34988 would break this workflow.This PR provides an alternative. The listener is always registered, but I'm using the request to piggyback a flag that activates/deactivates the listener.Commits-------a9d1ded [HttpKernel] Make ErrorListener unaware of the event dispatcher.
@fabpotfabpot merged commita9d1ded intosymfony:masterFeb 8, 2020
@TobionTobion mentioned this pull requestFeb 9, 2020
@nicolas-grekasnicolas-grekas modified the milestones:next,5.1May 4, 2020
@fabpotfabpot mentioned this pull requestMay 5, 2020
@derrabusderrabus deleted the improvement/make-error-listener-unaware-of-ed branchMarch 13, 2021 15:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@TobionTobionTobion approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

5 participants
@derrabus@fabpot@nicolas-grekas@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp