From 4a854524b0fc290bfeed7e96aa24589ab65fafee Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 4 Jul 2024 15:38:14 +0200 Subject: [PATCH] Remove usage of the deprecated base extension from HttpKernel The base extension available in HttpKernel only adds support for registering some classes to be added in the cache warmer of the doctrine/annotations parser, compared to the base class of the DI component. As annotations are not supported anymore in Symfony 7, this base class has been deprecated in Symfony 7.1. As this bundle does not rely on the extra feature, it can use the base class from DI directly. --- DependencyInjection/SwarrotExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/SwarrotExtension.php b/DependencyInjection/SwarrotExtension.php index 69e095f..0324105 100644 --- a/DependencyInjection/SwarrotExtension.php +++ b/DependencyInjection/SwarrotExtension.php @@ -5,9 +5,9 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ChildDefinition; use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\DependencyInjection\Reference; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * SwarrotExtension.