Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/DependencyInjection/Compiler/ServiceAnnotationPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ public function process(ContainerBuilder $container): void
$class = $id;
}

$class = $container->getParameterBag()->resolveValue($class);
try {
$class = $container->getParameterBag()->resolveValue($class);
} catch (\Throwable $exception) {
// This is not processable - potentially problem with other bundles that register services with parameters as class name.
// The parameter might not be available yet, as we are registered with priority 110.
continue;
}

if (
!$class
Expand Down