Skip to content

[DoctrineBridge] Make subscriber and listeners prioritizable #39978

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

jderusse
Copy link
Member

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #28090
License MIT
Doc PR -

handle Doctrine's eventSubscriber and eventListener priority (listener exposed by the eventSubscriber will have the same priority than the eventListener)

@carsonbot carsonbot changed the title Make subscriber and listeners prioritizable [DoctrineBridge] Make subscriber and listeners prioritizable Jan 26, 2021
@jderusse jderusse force-pushed the doctrine-event-priority branch 4 times, most recently from 21eb8d5 to 5c53f99 Compare January 26, 2021 15:53
@jderusse jderusse added this to the 5.x milestone Jan 26, 2021
@jderusse jderusse force-pushed the doctrine-event-priority branch 2 times, most recently from 610a999 to a74f232 Compare January 28, 2021 22:11
nicolas-grekas added a commit that referenced this pull request Feb 4, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[Doctrine] Restore priority for EventSubscribers

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | fix #40031
| License       | MIT
| Doc PR        | -

Since #39990, lazy subscribers are called AFTER listeners (which is the opposite of previous implementation).
This PR restore the previous behavior.

Note: ordered subscribers is implemented in #39978 but is considered as a new feature.

Commits
-------

94eac1b Restore priority for eventSubscribers
@fabpot
Copy link
Member

fabpot commented Feb 5, 2021

@jderusse Can you rebase?

@jderusse jderusse force-pushed the doctrine-event-priority branch from a74f232 to 14a613b Compare February 5, 2021 11:49
@jderusse jderusse merged commit a12db94 into symfony:5.x Feb 5, 2021
@jderusse jderusse deleted the doctrine-event-priority branch February 5, 2021 17:57
@fabpot fabpot mentioned this pull request Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doctrine Event Subscribers are always registered before Event Listeners
5 participants