diff --git a/DependencyInjection/Compiler/CustomProcessorPass.php b/DependencyInjection/Compiler/CustomProcessorPass.php index 76fc74b14..d64952c13 100644 --- a/DependencyInjection/Compiler/CustomProcessorPass.php +++ b/DependencyInjection/Compiler/CustomProcessorPass.php @@ -13,6 +13,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Reference; /** * Compiler Pass to identify and register custom processors. @@ -46,7 +47,7 @@ public function process(ContainerBuilder $container): void } } - $definition->addMethodCall('addProcessor', [$id, $before]); + $definition->addMethodCall('addProcessor', [new Reference($id), $before]); } } }