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", 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