| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 5 | ||
| Bugs | 0 | Features | 3 |
| 1 | <?php |
||
| 24 | 4 | public function load(array $configs, ContainerBuilder $container) |
|
| 25 | { |
||
| 26 | 4 | $configuration = new Configuration(); |
|
| 27 | 4 | $config = $this->processConfiguration($configuration, $configs); |
|
| 28 | |||
| 29 | 4 | $container->setParameter('dpn_xml_sitemap.defaults', $config['defaults']); |
|
| 30 | 4 | $container->setParameter('dpn_xml_sitemap.http_cache', $config['http_cache']); |
|
| 31 | 4 | $container->setParameter('dpn_xml_sitemap.max_per_sitemap', $config['max_per_sitemap']); |
|
| 32 | |||
| 33 | 4 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 34 | 4 | $loader->load('services.xml'); |
|
| 35 | 4 | } |
|
| 36 | } |
||
| 37 |