Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function load(array $configs, ContainerBuilder $container) |
||
20 | { |
||
21 | $config = $this->processConfiguration(new Configuration(), $configs); |
||
22 | |||
23 | $container->setParameter('geoip2.cache', $config['cache']); |
||
24 | $container->setParameter('geoip2.url', $config['url']); |
||
25 | |||
26 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
27 | $loader->load('services.yml'); |
||
28 | } |
||
29 | |||
38 |