Le 17/05/2011 21:37, renegare a écrit :
Hi,

Can I propose a change to the way event listeners are registered
within the configuration:

listeners:
     event.string.id
           mybundlenamespace.id
               class: \Path\To\Class
               type: singleton|static
               method: observeMethod


The type parameter can dictate whether the method of an object should
be called from a static or as a singleton object, or any other way
possible.
The method parameter is obviously the name of the class to be called
which accepts one argument, the Event object.

Is this possible? Maybe The Listener Bundle?

M.

What would be the /listeners /entry in the config ?
The listeners need to be able to be registered from any bundle and injected in the EventDispatcher service defined in the FrameworkBundle. The *only* way to do it is to use a tag, which is the current way to do.

--
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 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

Reply via email to