-
Notifications
You must be signed in to change notification settings - Fork 231
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
Deprecate EventSubscriberInterface
in favor of #[AsDocumentListener]
#817
Deprecate EventSubscriberInterface
in favor of #[AsDocumentListener]
#817
Conversation
0e59db9
to
7ca34fa
Compare
I remember that |
It's called |
What I meant is that there are two of them: Seems like |
4e1787f
to
2833614
Compare
Thanks for your reviews. I discovered this feature last night, I'm going to revisit it with a more awake eye. |
2833614
to
ff0e00e
Compare
It seems that
The respective
I conclude that |
On the
I'm thinking we should rename the class |
Thanks for taking a look at this! |
ff0e00e
to
9a008ee
Compare
9a008ee
to
5628846
Compare
…M bundle attribute name (GromNaN) This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [DoctrineBridge] Adapt deprecation message to include ODM bundle attribute name | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Refs doctrine/DoctrineMongoDBBundle#816 | License | MIT In `DoctrineMongoDBBundle`, the attribute to register event listeners is called `AsDocumentListener`, not `AsDoctrineListener` like in `DoctrineBundle`. (see [exploration details](doctrine/DoctrineMongoDBBundle#817 (comment))) In order to not confuse developers updating their application with the wrong attribute name, this PR adapts the message to the context. - in `RegisterEventListenersAndSubscribersPass`, it's simple to check [the tagPrefix provided by the bundle](https://github.com/doctrine/DoctrineMongoDBBundle/blob/7fa2155aed7254f17b14182e8568284f45e33034/DoctrineMongoDBBundle.php#L41). - in `ContainerAwareEventManager`, I havent found anything to provide context. So I removed the attribute name from the message. Commits ------- 56d4263 [DoctrineBridge] Adapt deprecation message to include ODM bundle attribute name
Same as doctrine/DoctrineBundle#1664.
Fix #816
I rewrote the documentation, by merging
DoctrineBundle
event doc and the good parts of this bundle doc. All mentions to theEventSubscriberInterface
have been removed.