Conditions | 4 |
Paths | 4 |
Total Lines | 23 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | public function process(ContainerBuilder $container) |
||
12 | { |
||
13 | if (!$container->hasDefinition('ob.cms.admin_container')) { |
||
14 | return; |
||
15 | } |
||
16 | |||
17 | $definition = $container->getDefinition( |
||
18 | 'ob.cms.admin_container' |
||
19 | ); |
||
20 | |||
21 | $taggedServices = $container->findTaggedServiceIds( |
||
22 | 'ob.cms.admin' |
||
23 | ); |
||
24 | |||
25 | foreach ($taggedServices as $id => $tagAttributes) { |
||
26 | foreach ($tagAttributes as $attributes) { |
||
27 | $definition->addMethodCall( |
||
28 | 'addClass', |
||
29 | array(new Reference($id), $attributes["alias"]) |
||
30 | ); |
||
31 | } |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 |