Le 13/02/2011 23:47, Yohan 'rouKs' G. a écrit :
Hi all,
I've got a problem with custom listener after upgrading to PR6.
Here my config :
services:
kernel.listener.page_listener:
class: Bundle\PageBundle\Listener\PageListener
tags:
- { name: kernel.listener }
And i have this error :
InvalidArgumentException: Service "kernel.listener.page_listener" must
define the "event" attribute on "kernel.listener" tags. in /Users/
yohan/Sites/symfony2/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/
DependencyInjection/Compiler/RegisterKernelListenersPass.php on line
31
But the documentation don't speak about an event attribute... Have you
an idea ?
Thanks in advance,
Yohan.
The way the listeners are registered changed between PR5 and PR6. Look
at the commit message for the new implementation:
https://github.com/symfony/symfony/commit/1c11d816119814f17b30cb5b717a5bd9d3631356
Regards
--
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 [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-users?hl=en