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