We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30220c commit 76e395bCopy full SHA for 76e395b
src/DependencyInjection/Compiler/ServiceAnnotationPass.php
@@ -37,7 +37,13 @@ public function process(ContainerBuilder $container): void
37
$class = $id;
38
}
39
40
- $class = $container->getParameterBag()->resolveValue($class);
+ try {
41
+ $class = $container->getParameterBag()->resolveValue($class);
42
+ } catch (\Throwable $exception) {
43
+ // This is not processable - potentially problem with other bundles that register services with parameters as class name.
44
+ // The parameter might not be available yet, as we are registered with priority 110.
45
+ continue;
46
+ }
47
48
if (
49
!$class
0 commit comments