Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 10 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
26 | public function load(array $configs, ContainerBuilder $container) |
||
27 | { |
||
28 | $configuration = new Configuration(); |
||
29 | $config = $this->processConfiguration($configuration, $configs); |
||
30 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
31 | |||
32 | if (isset($config['api']['type']['search'])) { |
||
33 | $loader->load('search.xml'); |
||
34 | |||
35 | $container->setParameter('my_poseo.api.search.base_url', $config['api']['type']['search']['base_url']); |
||
36 | $container->setParameter('my_poseo.api.key', $config['api']['key']); |
||
37 | } |
||
38 | |||
39 | $container->setParameter('my_poseo.api.search_class', $config['api']['search_class']); |
||
40 | $container->setParameter('my_poseo.api.cache_service_id', $config['api']['cache_service_id']); |
||
41 | $container->setParameter('my_poseo.api.http_client', $config['api']['http_client']); |
||
42 | } |
||
43 | } |
||
44 |