Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function load(array $configs, ContainerBuilder $container): void |
||
20 | { |
||
21 | $configuration = new Configuration(); |
||
22 | $config = $this->processConfiguration($configuration, $configs); |
||
23 | |||
24 | $container->setParameter('correlation_id.request_header_name', $config['response_header_name']); |
||
25 | $container->setParameter('correlation_id.response_header_name', $config['response_header_name']); |
||
26 | $container->setParameter('correlation_id.pass_through', $config['pass_through']); |
||
27 | |||
28 | $yamlLoader = new Loader\YamlFileLoader( |
||
29 | $container, |
||
30 | new FileLocator(__DIR__ . '/../../config') |
||
31 | ); |
||
32 | |||
33 | $yamlLoader->load('services.yaml'); |
||
34 | } |
||
36 |