Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.0123 |
Changes | 0 |
1 | <?php |
||
20 | 1 | public function load(array $configs, ContainerBuilder $container) |
|
21 | { |
||
22 | 1 | $configuration = new Configuration(); |
|
23 | 1 | $config = $this->processConfiguration($configuration, $configs); |
|
24 | 1 | if (array_key_exists('imports', $config)) { |
|
25 | 1 | foreach ($config['imports'] as $importName => $importConfig) { |
|
26 | $container->setParameter('qltyc_tl.imports.' . strtolower($importName), $importConfig); |
||
27 | } |
||
28 | } |
||
29 | |||
30 | 1 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 1 | $loader->load('services.yml'); |
|
32 | 1 | } |
|
33 | |||
42 |