Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 2 | public function load(array $configs, ContainerBuilder $container): void |
|
15 | { |
||
16 | 2 | $loaderXml = new XmlFileLoader( |
|
17 | 2 | $container, |
|
18 | 2 | new FileLocator(__DIR__.'/../Resources/config') |
|
19 | ); |
||
20 | 2 | $loaderXml->load('services.xml'); |
|
21 | |||
22 | 2 | $configuration = new Configuration(); |
|
23 | 2 | $config = $this->processConfiguration($configuration, $configs); |
|
24 | |||
25 | 2 | foreach ($config[Configuration::NODE_CONVERTER] as $converter => $parameters) { |
|
26 | 2 | foreach ($parameters as $parameter => $value) { |
|
27 | 2 | $container->setParameter(sprintf('pgs_hash_id.converter.%s.%s', $converter, $parameter), $value); |
|
28 | } |
||
29 | } |
||
30 | |||
31 | 2 | $this->registerAnnotation(); |
|
32 | 2 | } |
|
39 |