Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function load(array $config, ContainerBuilder $container): void |
||
18 | { |
||
19 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|||
20 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
21 | |||
22 | $loader->load('services.yaml'); |
||
23 | |||
24 | $paths = $config['channel_paths']; |
||
25 | $namedPaths = []; |
||
26 | foreach ($paths as $path) { |
||
27 | $pathArr = [ |
||
28 | 'path' => $path['path'], |
||
29 | 'domain' => $path['domain'], |
||
30 | 'default' => $path['default'] |
||
31 | ]; |
||
32 | $namedPaths[$path['name']] = $pathArr; |
||
33 | } |
||
34 | $enabledEnrollerEdit = $config['customers']['enroller_edit']['enabled']; |
||
35 | $container->setParameter('app_edit_enroller_enabled', $enabledEnrollerEdit); |
||
36 | $container->setParameter('app_channel_paths', $namedPaths); |
||
37 | } |
||
39 |