diff --git a/openy_hf/src/EventSubscriber/ResponseEventSubscriber.php b/openy_hf/src/EventSubscriber/ResponseEventSubscriber.php index 903aa110..39d7b8bf 100644 --- a/openy_hf/src/EventSubscriber/ResponseEventSubscriber.php +++ b/openy_hf/src/EventSubscriber/ResponseEventSubscriber.php @@ -3,8 +3,8 @@ namespace Drupal\openy_hf\EventSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; +use Symfony\Component\HttpKernel\Event\ResponseEvent; /** * Class ResponseEventSubscriber. @@ -26,10 +26,10 @@ public static function getSubscribedEvents() { /** * Event callback onRespond. * - * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event + * @param Symfony\Component\HttpKernel\Event\ResponseEvent $event * Event. */ - public function onRespond(FilterResponseEvent $event) { + public function onRespond(ResponseEvent $event) { $remove_header = FALSE; $response = $event->getResponse(); $routes = ['openy_hf.header', 'openy_hf.footer'];