| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2.024 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
| 28 | { |
||
| 29 | 2 | $configuration = new Configuration(); |
|
| 30 | 2 | $config = $this->processConfiguration($configuration, $configs); |
|
| 31 | 2 | $environment = $container->getParameter("kernel.environment"); |
|
| 32 | |||
| 33 | 2 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 34 | 2 | $loader->load('services.yml'); |
|
| 35 | |||
| 36 | // Some configurations are turned on so tests are run with Tests user. |
||
| 37 | 2 | if ($environment !== 'test') { |
|
| 38 | $loader->load('parameters.yml'); |
||
| 39 | } else { |
||
| 40 | 2 | $loader->load('parameters_dev.yml'); |
|
| 41 | } |
||
| 42 | 2 | } |
|
| 43 | } |
||
| 44 |