hasin.me
How to login a user programatically in Symfony2
Sometime, you may need to log in an user manually from code, instead of generic form based log in. To do it, you need to use Two Security component “UsernamePasswordToken” and “In…