| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function load(array $configs, ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | $configuration = new Configuration(); |
||
| 21 | $config = $this->processConfiguration($configuration, $configs); |
||
| 22 | |||
| 23 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 24 | $loader->load('services.xml'); |
||
| 25 | |||
| 26 | if( $config['cache_dir'] === null ) { |
||
| 27 | $config['cache_dir'] = $container->getParameter('kernel.cache_dir'); |
||
| 28 | } |
||
| 29 | |||
| 30 | foreach ($config as $k => $v) { |
||
| 31 | $container->setParameter('browscap.' . $k, $v); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 |