We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function process(ContainerBuilder $container) |
||
16 | { |
||
17 | $definition = $container->findDefinition(ConfigProcessor::class); |
||
18 | $taggedServices = $container->findTaggedServiceIds('overblog_graphql.definition_config_processor', true); |
||
19 | |||
20 | foreach ($taggedServices as $id => $tags) { |
||
21 | foreach ($tags as $attributes) { |
||
22 | $definition->addMethodCall( |
||
23 | 'addConfigProcessor', |
||
24 | [ |
||
25 | new Reference($id), |
||
26 | isset($attributes['priority']) ? $attributes['priority'] : 0, |
||
27 | ] |
||
28 | ); |
||
29 | } |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |