Le 21/06/2011 11:22, ???? ????? a écrit :
But how I can take event dispatcher instance in bundle controller that
know about registered listeners (as service), or every event
dispatcher instance take listeners in service container by tag
kernel.listener? In past i think that for use event dispatcher I
should make new instance of it, and make it as service to global
access, that other can add listener to it.
The controller does not need to know about the listeners. It will use
the /event_dispatcher/ service to dispatch an event, and then the event
dispatcher will call the listeners that are registered for this event.
--
Christophe | Stof
--
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en