FriendsOfSymfony/FOSUserBundle — pull request #1229 by Lughino (2013-08-02 23:06:43+00:00)
Title: Insert failed events

My purpose is to create an event "FAILED" to give the possibility to modify the response object even when the form is not valid.

This change can be used for example when you makes it a json object to a form in ajax.
If it is valid hook the *_SUCCESS event, but if it is not valid there was no way to change the answer.
Now with the event *_FAILED this is possible.