| Conditions | 4 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.3244 |
| Changes | 14 | ||
| Bugs | 0 | Features | 4 |
| 1 | <?php |
||
| 22 | 2 | public function process(ContainerBuilder $container) |
|
| 23 | { |
||
| 24 | 2 | $loader = new XmlFileLoader($container, new FileLocator('config')); |
|
| 25 | 2 | $filesystem = new FileSystem(); |
|
| 26 | |||
| 27 | 2 | if ($filesystem->exists(ROOT . 'app/container.xml')) { |
|
| 28 | $loader->load(ROOT . 'app/container.xml'); |
||
| 29 | 2 | } elseif ($filesystem->exists(ROOT . '/container.xml')) { |
|
| 30 | 2 | $loader->load(ROOT . '/container.xml'); |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | if (!$container->hasParameter('debug')) { |
|
| 34 | $environment = $container->getParameter('environment'); |
||
| 35 | $container->setParameter('debug', $environment !== Environment::PRODUCTION); |
||
| 36 | } |
||
| 37 | 2 | } |
|
| 38 | } |
||
| 39 |