From 09f8ba3e5348b7d5d9cc6db3a51a26f9b260dfa4 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 17 Apr 2024 10:31:20 +0200 Subject: [PATCH] Fix case with _instanceof service definitions (#9) --- .../CompilerPass/EndpointRouterCompilerPass.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DependencyInjection/CompilerPass/EndpointRouterCompilerPass.php b/DependencyInjection/CompilerPass/EndpointRouterCompilerPass.php index 63329de..8be7ada 100644 --- a/DependencyInjection/CompilerPass/EndpointRouterCompilerPass.php +++ b/DependencyInjection/CompilerPass/EndpointRouterCompilerPass.php @@ -30,6 +30,9 @@ public function process(ContainerBuilder $container) $services = []; foreach ($container->getDefinitions() as $id => $definition) { + if (strpos($id, '.abstract.instanceof.') === 0) { + continue; + } $services[$id] = $definition->getClass(); }