We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When tagging service to be a listener your online docs on symfony.com say to tag it "doctrine.entity_listener".
However the code seems to search for doctrine.orm.entity_listener.
Which is correct?
DependencyInjection/Compiler/EntityListenerPass.php:
$resolvers = $container->findTaggedServiceIds('doctrine.orm.entity_listener');
The text was updated successfully, but these errors were encountered:
So there seems to be two pieces of documentation on symfony.com:
http://symfony.com/doc/current/doctrine/event_listeners_subscribers.html http://symfony.com/doc/current/bundles/DoctrineBundle/entity-listeners.html
Which one is the correct one to follow?
Sorry, something went wrong.
There are 2 different tags:
doctrine.event_listener
doctrine.event_subscriber
doctrine.orm.entity_listener
Both tags are valid. They refer to different features (the EntityListener feature internally registers an event listener btw).
AFAIK, there is no documentation talking about doctrine.entity_listener. If there is one, it is a typo.
doctrine.entity_listener
Closing this one in favor of #457
stof
No branches or pull requests
When tagging service to be a listener your online docs on symfony.com say to tag it "doctrine.entity_listener".
However the code seems to search for doctrine.orm.entity_listener.
Which is correct?
DependencyInjection/Compiler/EntityListenerPass.php:
The text was updated successfully, but these errors were encountered: