Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function process(ContainerBuilder $container) |
||
33 | { |
||
34 | $mutations = []; |
||
35 | foreach ($container->findTaggedServiceIds('api_platform.graphql.mutation_resolver', true) as $serviceId => $tags) { |
||
36 | foreach ($tags as $tag) { |
||
37 | $mutations[$tag['id'] ?? $serviceId] = new Reference($serviceId); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | $container->getDefinition('api_platform.graphql.mutation_resolver_locator')->addArgument($mutations); |
||
42 | } |
||
44 |