[PR #12151] Added support for an external ListenersInvoker. #13523

Closed
opened 2026-01-22 16:17:22 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/12151

State: closed
Merged: No


Hello

I ran into a hard time trying to implement Dependency Injection on listeners in the Doctrine ORM i use for my own project,
but i found a solution, so i thought i would share it upstream 🙂

It is made so that you can on your configuration can provide a object implementing a new interface and through that you are able to make your own code that runs the listeners.

I am still doing some local testing of this feature on my personal project.

If this feature is not needed/wanted upstream feel free to close this PR, No Hard Feelings 🙂

Hope this helps 🙂

**Original Pull Request:** https://github.com/doctrine/orm/pull/12151 **State:** closed **Merged:** No --- Hello I ran into a hard time trying to implement Dependency Injection on listeners in the Doctrine ORM i use for my own project, but i found a solution, so i thought i would share it upstream :slightly_smiling_face: It is made so that you can on your configuration can provide a object implementing a new interface and through that you are able to make your own code that runs the listeners. I am still doing some local testing of this feature on my personal project. If this feature is not needed/wanted upstream feel free to close this PR, No Hard Feelings :slightly_smiling_face: Hope this helps :slightly_smiling_face:
admin added the pull-request label 2026-01-22 16:17:22 +01:00
admin closed this issue 2026-01-22 16:17:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13523