X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FEventListener%2FRegistrationConfirmedListener.php;h=10586126fe35f43ef5ae45a1d1e635686259adb0;hb=a7e2218e253138ed53e18b4775dce291c78246c5;hp=68c25f1f5a800173e9077be8842836befa4a12e7;hpb=16dabc326311f084d671be188c7941bbb3c341c9;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php index 68c25f1f..10586126 100644 --- a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php +++ b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php @@ -2,11 +2,11 @@ namespace Wallabag\CoreBundle\EventListener; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Doctrine\ORM\EntityManager; use FOS\UserBundle\Event\FilterUserResponseEvent; use FOS\UserBundle\FOSUserEvents; +use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Wallabag\CoreBundle\Entity\Config; class RegistrationConfirmedListener implements EventSubscriberInterface @@ -28,9 +28,9 @@ class RegistrationConfirmedListener implements EventSubscriberInterface public static function getSubscribedEvents() { - return array( + return [ FOSUserEvents::REGISTRATION_CONFIRMED => 'authenticate', - ); + ]; } public function authenticate(FilterUserResponseEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null)