Tim,
I don't have an answer, but I do have an old patch that added the
ability to attach subscribers via config files. Not the same problem as
you're discussing, as it doesn't deal with 3rd party bundles, but you
might be interested none-the-less. I never submitted it because I
wasn't sure it was the right way to handle things and at the time the
DoctrineBundle was undergoing some changes.
If you are interested:
http://github.com/blt04/symfony/commits/doctrine-event-subscribers
Brandon
On 9/27/10 3:22 AM, Tim Nagel wrote:
Hello,
At the moment it looks like DoctrineExtension::loadOrmEntityManager()
doesnt pass a reference in for an EventManager, not allowing me to
attach additional listeners to it prior to being initialised in the EM.
I was going to send in a patch adding this functionality, however it
doesnt feel correct - each bundle will potentially want to do its own
thing to the EventManager, attaching additional listeners prior to the
EM being returned, and my understanding of how the DI config works for
specifying a class name would mean only a single bundle can do this.
Which puts me in a position where I'm not sure how to proceed. How do
I modify this code (if nothing is currently planned) so that 3rd party
bundles can manipulate the EventManager (adding new listeners, ie:
magic to remove discriminator maps, or provide vendor/bundle prefixes
for table names - these listeners need to be added prior to creating
the EntityManager.)
t
--
If you want to report a vulnerability issue on symfony, please send it
to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en