Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function process(ContainerBuilder $container) |
||
11 | { |
||
12 | if (!$container->has('problematic.acl_manager')) { |
||
13 | return; |
||
14 | } |
||
15 | // If there was a call registered to set the acl manager, we can now |
||
16 | // set it with the proper reference |
||
17 | $definition = $container->getDefinition('khepin.yaml_loader'); |
||
18 | if ($definition->hasMethodCall('setAclManager')) { |
||
19 | $definition->removeMethodCall('setAclManager'); |
||
20 | $definition->addMethodCall('setAclManager', array(new Reference('problematic.acl_manager'))); |
||
21 | } |
||
22 | } |
||
23 | } |
||
24 |