Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function load(array $configs, ContainerBuilder $container) |
||
30 | { |
||
31 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
32 | $loader->load('parameters.xml'); |
||
33 | $loader->load('services.xml'); |
||
34 | |||
35 | $configuration = new Configuration(); |
||
36 | $config = $this->processConfiguration($configuration, $configs); |
||
37 | |||
38 | if (isset($config)) { |
||
39 | $container->setParameter('jobqueue.config', $config); |
||
40 | $container->setParameter('jobqueue.adapter.type', $config['adapter']); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 |