| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function process(ContainerBuilder $container) |
||
| 36 | { |
||
| 37 | $mutations = []; |
||
| 38 | foreach ($container->findTaggedServiceIds('api_platform.graphql.mutation_resolver', true) as $serviceId => $tags) { |
||
| 39 | foreach ($tags as $tag) { |
||
| 40 | if (!isset($tag['id'])) { |
||
| 41 | $tag['id'] = $serviceId; |
||
| 42 | } |
||
| 43 | |||
| 44 | $mutations[$tag['id']] = new Reference($serviceId); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | $container->getDefinition('api_platform.graphql.mutation_resolver_locator')->addArgument($mutations); |
||
| 49 | } |
||
| 51 |