Use FOSUserEvents instead of c/p a controller

The `resetAction` was overriden to redirect user to the homepage instead of `fos_user_profile_show`.
Instead of copying the whole method we can simply use FOSUserEvents to handle that.
This commit is contained in:
Jeremy Benoist
2016-01-21 16:39:13 +01:00
parent a0d6ccc5ca
commit 0f0e8eb82a
3 changed files with 48 additions and 75 deletions

View File

@ -8,3 +8,10 @@ services:
- "%scheb_two_factor.email.sender_name%"
- "%wallabag_support_url%"
- "%wallabag_url%"
wallabag_user.password_resetting:
class: Wallabag\UserBundle\EventListener\PasswordResettingListener
arguments:
- "@router"
tags:
- { name: kernel.event_subscriber }