| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function load(array $configs, ContainerBuilder $container) |
||
| 29 | { |
||
| 30 | $configuration = new Configuration(); |
||
| 31 | $config = $this->processConfiguration($configuration, $configs); |
||
| 32 | |||
| 33 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 34 | $loader->load('services.xml'); |
||
| 35 | |||
| 36 | $definition = $container->getDefinition('af_dont_translate.debug.request_listener'); |
||
| 37 | $definition->replaceArgument(3, $config['mode']); |
||
| 38 | $definition->replaceArgument(4, $config['param_name']); |
||
| 39 | $definition->replaceArgument(5, isset($config['roles']) ? $config['roles'] : array()); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |