You must inject the services you need into your service. I use constructor injection.
Here is some code: This example listener has the router and the security context injected: http://pastebin.com/m1MLqWQy Here is the service definition: http://pastebin.com/PcS4rm41 Hope that helps. Dustin Dobervich -- 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