Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function load(array $configs, ContainerBuilder $container) { |
||
16 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
17 | $loader->load('services.xml'); |
||
18 | |||
19 | $configuration = new Configuration(); |
||
20 | $config = $this->processConfiguration($configuration, $configs); |
||
21 | $providerType = $config['provider_type']; |
||
22 | $providerConfiguration = $config['provider_configuration']; |
||
23 | |||
24 | $container->setParameter('nv_request_limit.provider_type', $providerType); |
||
25 | $container->setParameter('nv_request_limit.provider_configuration', $providerConfiguration); |
||
26 | } |
||
28 |