Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function process(ContainerBuilder $container) |
||
33 | { |
||
34 | $generators = []; |
||
35 | |||
36 | foreach ($container->findTaggedServiceIds('api_platform.validation_groups_generator', true) as $serviceId => $tags) { |
||
37 | $generators[$serviceId] = new Reference($serviceId); |
||
38 | } |
||
39 | |||
40 | $container->getDefinition('api_platform.validator.groups_generator_locator')->setArgument(0, $generators); |
||
41 | } |
||
43 |