We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7a81fb + 0b0cfa9 commit cc979ecCopy full SHA for cc979ec
src/DependencyInjection/Compiler/AddRenderersPass.php
@@ -24,15 +24,13 @@ public function process(ContainerBuilder $container): void
24
return;
25
}
26
27
- $renderers = [];
28
$rendererReferences = [];
29
30
foreach ($container->findTaggedServiceIds('knp_menu.renderer', true) as $id => $tags) {
31
foreach ($tags as $attributes) {
32
if (empty($attributes['alias'])) {
33
throw new \InvalidArgumentException(sprintf('The alias is not defined in the "knp_menu.renderer" tag for the service "%s"', $id));
34
35
- $renderers[$attributes['alias']] = $id;
36
$rendererReferences[$attributes['alias']] = new Reference($id);
37
38
0 commit comments