Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2.0185 |
Changes | 0 |
1 | <?php |
||
27 | 18 | public function load(array $configs, ContainerBuilder $container) |
|
28 | { |
||
29 | 18 | $configuration = new Configuration(); |
|
30 | 18 | $config = $this->processConfiguration($configuration, $configs); |
|
31 | |||
32 | 18 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
33 | 18 | $loader->load(sprintf('storage/%s.xml', $config['storage'])); |
|
34 | 18 | $loader->load('task_event_listener.xml'); |
|
35 | 18 | $loader->load('scheduler.xml'); |
|
36 | 18 | $loader->load('command.xml'); |
|
37 | |||
38 | 18 | if ($config['run']['mode'] === 'listener') { |
|
39 | $loader->load('listener.xml'); |
||
40 | } |
||
41 | 18 | } |
|
42 | } |
||
43 |