From a9ac7a8784256a68a6f8abb6eff591c15241c814 Mon Sep 17 00:00:00 2001 From: eltharin Date: Mon, 8 Jul 2024 14:24:44 +0200 Subject: [PATCH] change loader to injector --- config/orm.xml | 2 +- src/DependencyInjection/DoctrineExtension.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/orm.xml b/config/orm.xml index 375fce3e..687c33c0 100644 --- a/config/orm.xml +++ b/config/orm.xml @@ -188,7 +188,7 @@ - + diff --git a/src/DependencyInjection/DoctrineExtension.php b/src/DependencyInjection/DoctrineExtension.php index 30337a44..8ec31955 100644 --- a/src/DependencyInjection/DoctrineExtension.php +++ b/src/DependencyInjection/DoctrineExtension.php @@ -33,7 +33,7 @@ use InvalidArgumentException; use LogicException; use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver; -use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolverVariableLoader; +use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolverVariableInjector; use Symfony\Bridge\Doctrine\Attribute\MapEntity; use Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension; use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator; @@ -538,8 +538,8 @@ protected function ormLoad(array $config, ContainerBuilder $container) $container->getDefinition('doctrine.orm.entity_value_resolver')->setArgument(2, (new Definition(MapEntity::class))); } - if (class_exists(ExpressionLanguage::class) && class_exists(EntityValueResolverVariableLoader::class)) { - $container->getDefinition('doctrine.orm.entity_value_resolver')->setArgument(3, new Reference('doctrine.orm.entity_value_resolver_variables_loader')); + if (class_exists(ExpressionLanguage::class) && class_exists(EntityValueResolverVariableInjector::class)) { + $container->getDefinition('doctrine.orm.entity_value_resolver')->setArgument(3, new Reference('doctrine.orm.entity_value_resolver_variables_injector')); } }