| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 3 | public function load(array $configs, ContainerBuilder $container) |
|
| 22 | { |
||
| 23 | 3 | $loader = new XmlFileLoader( |
|
| 24 | 3 | $container, |
|
| 25 | 3 | new FileLocator(__DIR__.'/../Resources/config') |
|
| 26 | ); |
||
| 27 | 3 | $loader->load('services.xml'); |
|
| 28 | |||
| 29 | 3 | $configuration = new Configuration(); |
|
| 30 | 3 | $config = $this->processConfiguration($configuration, $configs); |
|
| 31 | |||
| 32 | 2 | $definition = $container->getDefinition('mbarbey_u2f_security.subscriber'); |
|
| 33 | 2 | $definition->replaceArgument(0, $config['authentication_route']); |
|
| 34 | 2 | $definition->replaceArgument(1, $config['whitelist_routes']); |
|
| 35 | 2 | } |
|
| 37 |