[symfony-users] symfony2 - how to do s.th. after a users has logged in?

2011-06-17 Thread Flo
Hi, what I'm trying to achieve is, that after a user has successfully logged in, set the locale of the session. I made a listener for onSecurityInteractiveLogin, there I have access to the user object, but I can't access the session container (can I?) The login_check action is never really

Re: [symfony-users] symfony2 - how to do s.th. after a users has logged in?

2011-06-17 Thread Michael Holm
Hi, Yes you can.. just put it in as an argument: arguments: [@session] then get the session class in the constructor of the class.. http://symfony.com/doc/current/book/service_container.html Best regards, Michael Holm On Thu, Jun 16, 2011 at 8:33 PM, Flo fpfeif...@gmail.com wrote: Hi,