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;
*/
public static function getSubscribedEvents()
{
- return array(
+ return [
FOSUserEvents::RESETTING_RESET_SUCCESS => 'onPasswordResettingSuccess',
- );
+ ];
}
public function onPasswordResettingSuccess(FormEvent $event)