Skip to content
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

Add priority to #[AsDocumentListener] #822

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 20, 2023

After examining the #AsDocumentListener attributes of DoctrineMongoDBBundle, and comparing them with #[AsDoctrineListener] from DoctrineBundle, I conclude that they serve the same purpose.

This PR adds the missing priority property. It is correctly handled by Symfony\Bridge\Doctrine\DependencyInjection\CompilerPassRegisterEventListenersAndSubscribersPass::findAndSortTags.

@GromNaN GromNaN merged commit 49bfb83 into doctrine:4.7.x Dec 21, 2023
13 checks passed
@GromNaN GromNaN deleted the document-listener-priority branch December 21, 2023 14:24
GromNaN added a commit that referenced this pull request Dec 22, 2023
* 4.7.x:
  Deprecate EventSubscriberInterface in favor of #[AsDocumentListener] (#817)
  Deprecate AsDocumentListener::$method and $lazy (not working) (#825)
  Add priority to #[AsDocumentListener] (#822)
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.

2 participants