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
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]],
+ ];
}
}