diff --git a/src/EventListener/Php8AttributesListener.php b/src/EventListener/Php8AttributesListener.php index b5a7e479..1e27e4cd 100644 --- a/src/EventListener/Php8AttributesListener.php +++ b/src/EventListener/Php8AttributesListener.php @@ -3,8 +3,8 @@ namespace FOS\HttpCacheBundle\EventListener; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface; -use Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver; use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\Kernel; @@ -25,11 +25,11 @@ class_alias(GetResponseEvent::class, 'FOS\HttpCacheBundle\EventListener\Attribut class Php8AttributesListener implements EventSubscriberInterface { /** - * @var ControllerResolver + * @var ControllerResolverInterface */ private $controllerResolver; - public function __construct(ControllerResolver $controllerResolver) + public function __construct(ControllerResolverInterface $controllerResolver) { if (\PHP_VERSION_ID < 80000) { throw new \Exception(sprintf('Php8AttributesListener must not be loaded for PHP %s', phpversion()));