symfony/symfony — pull request #2845 by wpottier (2011-12-12 12:02:01+00:00)
Title: [Security] handle InvalidArgumentException when user does not exist anymore

Bug fix: yes
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: [yes|no]
Fixes the following tickets: #2822
Todo: -
------------------

Catch the InvalidArgumentException thrown when user does not exists anymore (refreshing user return a null value). The user is disconnected and token is cleared from session data.