| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | public function process(ContainerBuilder $container) |
|
| 23 | { |
||
| 24 | 2 | $container->setParameter('application.root', ROOT); |
|
| 25 | |||
| 26 | 2 | $locator = new FileLocator([ |
|
| 27 | 2 | ROOT, |
|
| 28 | 2 | ROOT . 'app/', |
|
| 29 | ]); |
||
| 30 | |||
| 31 | 2 | $xmlLoader = new XmlFileLoader($container, $locator); |
|
| 32 | 2 | $xmlLoader->import('container.xml'); |
|
| 33 | |||
| 34 | 2 | $ymlLoader = new YamlFileLoader($container, $locator); |
|
| 35 | 2 | $ymlLoader->import('config.yml', null, true); |
|
| 36 | |||
| 37 | 2 | $environment = $container->getParameter('environment'); |
|
| 38 | 2 | $container->setParameter('debug', $environment !== Environment::PRODUCTION); |
|
| 39 | 2 | } |
|
| 40 | } |
||
| 41 |