From 3353c1e5e4c2a001665fcee19db7aa7c9b3dc463 Mon Sep 17 00:00:00 2001 From: Florian LE GOFF Date: Mon, 17 Jun 2024 14:54:52 +0200 Subject: [PATCH 1/2] fix: DI Extension deprecated since Symfony 7.1 --- src/DependencyInjection/AbstractSonataAdminExtension.php | 2 +- src/DependencyInjection/SonataAdminExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DependencyInjection/AbstractSonataAdminExtension.php b/src/DependencyInjection/AbstractSonataAdminExtension.php index 859d3a28fa..dfe2dca7b4 100644 --- a/src/DependencyInjection/AbstractSonataAdminExtension.php +++ b/src/DependencyInjection/AbstractSonataAdminExtension.php @@ -16,7 +16,7 @@ use Sonata\AdminBundle\FieldDescription\FieldDescriptionInterface; use Sonata\AdminBundle\Templating\TemplateRegistryInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\DependencyInjection\Extension\Extension; /** * @author Thomas Rabaix diff --git a/src/DependencyInjection/SonataAdminExtension.php b/src/DependencyInjection/SonataAdminExtension.php index 6ea27cbbba..d4a15cac0c 100644 --- a/src/DependencyInjection/SonataAdminExtension.php +++ b/src/DependencyInjection/SonataAdminExtension.php @@ -20,6 +20,7 @@ use Sonata\AdminBundle\Util\AdminAclUserManagerInterface; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\Form\Extension\Core\Type\ChoiceType as SymfonyChoiceType; @@ -29,7 +30,6 @@ use Symfony\Component\Form\Extension\Core\Type\IntegerType as SymfonyIntegerType; use Symfony\Component\Form\Extension\Core\Type\TextareaType as SymfonyTextareaType; use Symfony\Component\Form\Extension\Core\Type\TextType as SymfonyTextType; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * @author Thomas Rabaix From c187571c28f9af42ed8a7d2ae04699d8b8f1b6a9 Mon Sep 17 00:00:00 2001 From: Florian LE GOFF Date: Mon, 17 Jun 2024 15:18:34 +0200 Subject: [PATCH 2/2] Bump rector --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bb359f80f2..65c0372aa8 100644 --- a/composer.json +++ b/composer.json @@ -79,7 +79,7 @@ "psalm/plugin-phpunit": "^0.18", "psalm/plugin-symfony": "^5.0", "psr/event-dispatcher": "^1.0", - "rector/rector": "^0.19", + "rector/rector": "^1.1", "symfony/browser-kit": "^5.4 || ^6.2 || ^7.0", "symfony/css-selector": "^5.4 || ^6.2 || ^7.0", "symfony/filesystem": "^5.4 || ^6.2 || ^7.0",