Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function process(ContainerBuilder $container) |
||
29 | { |
||
30 | $taggedServices = $container->findTaggedServiceIds('ongr_cookie.cookie'); |
||
31 | $injectorDefinition = $container->getDefinition('ongr_cookie.injector'); |
||
32 | |||
33 | foreach ($taggedServices as $id => $tagAttributes) { |
||
34 | $injectorDefinition->addMethodCall('addCookieModel', [new Reference($id)]); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |