Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function process(ContainerBuilder $container) |
||
18 | { |
||
19 | if (!$container->has('liip_theme_provider.theme_container')) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | $definition = $container->findDefinition( |
||
24 | 'liip_theme_provider.theme_container' |
||
25 | ); |
||
26 | |||
27 | $taggedServices = $container->findTaggedServiceIds( |
||
28 | LiipThemeProviderTags::THEME_PROVIDER |
||
29 | ); |
||
30 | foreach ($taggedServices as $id => $tags) { |
||
31 | $definition->addMethodCall( |
||
32 | 'addThemeProvider', |
||
33 | array(new Reference($id)) |
||
34 | ); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |