| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.0054 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
| 27 | { |
||
| 28 | 2 | $configuration = new Configuration(); |
|
| 29 | 2 | $this->processConfiguration($configuration, $configs); |
|
| 30 | |||
| 31 | 2 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 32 | 2 | $loader->load('services.yml'); |
|
| 33 | |||
| 34 | 2 | if ('test' !== $container->getParameter("kernel.environment")) { |
|
| 35 | $loader->load('parameters.yml'); |
||
| 36 | } else { |
||
| 37 | 2 | $loader->load('parameters_test.yml'); |
|
| 38 | } |
||
| 39 | 2 | } |
|
| 40 | } |
||
| 41 |