Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function load(array $configs, ContainerBuilder $container): void |
||
15 | { |
||
16 | $configuration = new Configuration(); |
||
17 | $config = $this->processConfiguration($configuration, $configs); |
||
18 | |||
19 | $loader = new Loader\PhpFileLoader($container, new FileLocator(dirname(__DIR__, 2) . '/Resources/config')); |
||
20 | $loader->load('services.php'); |
||
21 | |||
22 | foreach (['salt', 'min_hash_length', 'alphabet', 'passthrough', 'auto_convert'] as $parameter) { |
||
23 | $container->setParameter('hashids.' . $parameter, $config[$parameter]); |
||
24 | } |
||
27 |