X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FEventListener%2FLocaleListener.php;h=a1c7e5ab65becb66c73713ea47aec1887437efe9;hb=8c3c69fb9c8df3f78fe41ecc4349e11f5d5affdc;hp=80f5950462bd108a1e6ce4bfff00453627fb13a6;hpb=fcc6949d4a70f8b1d2c2b4e2c1e2fabdf6a93a7c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php index 80f59504..a1c7e5ab 100644 --- a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php +++ b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php @@ -2,9 +2,9 @@ namespace Wallabag\CoreBundle\EventListener; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * @see http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html @@ -36,9 +36,9 @@ class LocaleListener implements EventSubscriberInterface public static function getSubscribedEvents() { - return array( + return [ // must be registered before the default Locale listener - KernelEvents::REQUEST => array(array('onKernelRequest', 17)), - ); + KernelEvents::REQUEST => [['onKernelRequest', 17]], + ]; } }