diff --git a/EventListener/AlertifyListener.php b/EventListener/AlertifyListener.php index 1952931..82690a2 100644 --- a/EventListener/AlertifyListener.php +++ b/EventListener/AlertifyListener.php @@ -11,14 +11,12 @@ namespace Troopers\AlertifyBundle\EventListener; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Troopers\AlertifyBundle\Handler\AlertifySessionHandler; /** @@ -72,7 +70,7 @@ protected function injectAlertify(Response $response, Request $request) public static function getSubscribedEvents() { return [ - KernelEvents::RESPONSE => array('onKernelResponse'), + KernelEvents::RESPONSE => ['onKernelResponse'], ]; } }