Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 3 | public function process(ContainerBuilder $container): void |
|
21 | { |
||
22 | 3 | $router_definition = $container->getDefinition(Router::class); |
|
23 | |||
24 | /** @psalm-var array<class-string, array<string, string>> $routes */ |
||
25 | 3 | $routes = $container->findTaggedServiceIds('route'); |
|
26 | 3 | foreach ($routes as $service_id => $tag_attributes) { |
|
27 | 1 | $router_definition->addMethodCall('addRoute', [new Reference($service_id)]); |
|
28 | } |
||
31 |