Change user roles during a session in Symfony

http://blogsh.de/2011/11/15/change-user-roles-during-a-session-in-symfony/