From 94b14c9cb6fdd63cde264c55e715649f5b174827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 12 Dec 2023 21:22:36 +0100 Subject: [PATCH] Remove compatibility code with Symfony < 6.2 --- DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php | 2 -- DependencyInjection/DoctrineMongoDBExtension.php | 5 ----- 2 files changed, 7 deletions(-) diff --git a/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php b/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php index 50e85441..574cd605 100644 --- a/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php +++ b/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php @@ -17,8 +17,6 @@ * Class for Symfony bundles to configure mappings for model classes not in the * automapped folder. * - * NOTE: alias is only supported by Symfony 2.6+ and will be ignored with older versions. - * * @internal since version 4.7.0 */ final class DoctrineMongoDBMappingsPass extends RegisterMappingsPass diff --git a/DependencyInjection/DoctrineMongoDBExtension.php b/DependencyInjection/DoctrineMongoDBExtension.php index 73ad48a2..522b5277 100644 --- a/DependencyInjection/DoctrineMongoDBExtension.php +++ b/DependencyInjection/DoctrineMongoDBExtension.php @@ -400,11 +400,6 @@ private function loadMessengerServices(ContainerBuilder $container): void /** @param array $config */ private function loadEntityValueResolverServices(ContainerBuilder $container, FileLoader $loader, array $config): void { - // available in Symfony 6.2 and higher - if (! class_exists(EntityValueResolver::class)) { - return; - } - $loader->load('value_resolver.xml'); if (! class_exists(ExpressionLanguage::class)) {