Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0117 |
Changes | 13 | ||
Bugs | 0 | Features | 4 |
1 | <?php |
||
21 | 2 | public function process(ContainerBuilder $container) |
|
22 | { |
||
23 | 2 | $loader = new XmlFileLoader($container, new FileLocator('config')); |
|
24 | 2 | $filesystem = new FileSystem(); |
|
25 | |||
26 | 2 | if ($filesystem->exists(ROOT . 'app')) { |
|
27 | $loader->load(ROOT . 'app/container.xml'); |
||
28 | } else { |
||
29 | 2 | $loader->load(ROOT . '/container.xml'); |
|
30 | } |
||
31 | 2 | } |
|
32 | } |
||
33 |