Conditions | 3 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function load(array $configs, ContainerBuilder $container) |
||
19 | { |
||
20 | $configuration = $this->getConfiguration($configs, $container); |
||
21 | |||
22 | if (!isset($configuration) || empty($configuration)) { |
||
23 | throw new RuntimeException( |
||
24 | 'The configuration is not set correctly' |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | $config = $this->processConfiguration($configuration, $configs); |
||
29 | |||
30 | $loader = new XmlFileLoader( |
||
31 | $container, |
||
32 | new FileLocator(__DIR__ . '/../Resources/config') |
||
33 | ); |
||
34 | $loader->load('services.xml'); |
||
35 | |||
36 | $definition = $container->getDefinition('bugloos_query_sorting.query_sorting'); |
||
37 | $definition->setArgument(3, $config['default_cache_time']); |
||
38 | $definition->setArgument(4, $config['separator']); |
||
39 | } |
||
41 |