X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FUserBundle%2FEventListener%2FPasswordResettingListener.php;h=7df093f1bc3298de413c8dbf881506086ad197d0;hb=f808b01692a835673f328d7221ba8c212caa9b61;hp=128e85a424769e6530cd116be278201191214991;hpb=23afdf3a70a5035cb58b76138a8627701ba55273;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php b/src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php index 128e85a4..7df093f1 100644 --- a/src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php +++ b/src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php @@ -2,8 +2,8 @@ namespace Wallabag\UserBundle\EventListener; -use FOS\UserBundle\FOSUserEvents; use FOS\UserBundle\Event\FormEvent; +use FOS\UserBundle\FOSUserEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; @@ -27,9 +27,9 @@ class PasswordResettingListener implements EventSubscriberInterface */ public static function getSubscribedEvents() { - return array( + return [ FOSUserEvents::RESETTING_RESET_SUCCESS => 'onPasswordResettingSuccess', - ); + ]; } public function onPasswordResettingSuccess(FormEvent $event)