Decided to go with a bundle implementation. Employing object composition
seemed a more maintainable (and proper) solution rather than extend the
Symfony2 EventDispatcher component. Also, this will theoretically make it
easier to work with the ContainerAwareEventDispatcher in FrameworkBundle.

Here's the current progress:

https://github.com/jmikola/JmikolaEventWildcardBundle

Thanks for the input, guys.

On Wed, Aug 17, 2011 at 2:39 PM, Christophe COEVOET <[email protected]> wrote:

> Le 17/08/2011 20:02, Eriksen Costa a écrit :
>
>  I liked the idea. I would like to see it in the core code but seems more
>> suitable for a bundle, since there is not a single listener in Symfony2 that
>> needs this wildcard matcher.
>>
>>  Another solution would be to add it in the component as a special
> implementation extending the current one. This would make it available for
> all people using the EventDispatcher, not only for people using Symfony2
> with a given bundle. This way, you use this special implementation if you
> need it, and you use the current one otherwise for performances.
> And then, using it in Symfony would simply be a matter of changing the
> class (in fact, it may require refactoring the TraceableEventDispatcher to
> use composition instead of inheritance so that it works in debug mode too)
>
> --
> 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
> symfony-devs+unsubscribe@**googlegroups.com<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/symfony-devs?hl=en<http://groups.google.com/group/symfony-devs?hl=en>
>



-- 
jeremy mikola

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