Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
20 | 6 | public function load(array $configs, ContainerBuilder $container) |
|
21 | { |
||
22 | 6 | $configuration = new Configuration(); |
|
23 | 6 | $config = $this->processConfiguration($configuration, $configs); |
|
24 | |||
25 | 6 | if ($container->hasParameter('kunstmaan_utilities.cipher.secret')) { |
|
26 | 1 | @trigger_error('Setting the "kunstmaan_utilities.cipher.secret" parameter is deprecated since KunstmaanUtilitiesBundle 5.2, this value will be ignored/overwritten in KunstmaanUtilitiesBundle 6.0. Use the "kunstmaan_utilities.cipher.secret" config instead if you want to set a different value than the default "%kernel.secret%".', E_USER_DEPRECATED); |
|
|
|||
27 | 5 | } elseif ($container->hasParameter('secret')) { |
|
28 | 4 | $container->setParameter('kunstmaan_utilities.cipher.secret', $container->getParameter('secret')); |
|
29 | } else { |
||
30 | 1 | $container->setParameter('kunstmaan_utilities.cipher.secret', $config['cipher']['secret']); |
|
31 | } |
||
32 | |||
33 | 6 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
34 | 6 | $loader->load('commands.yml'); |
|
35 | 6 | $loader->load('services.yml'); |
|
36 | 6 | } |
|
37 | } |
||
38 |
If you suppress an error, we recommend checking for the error condition explicitly: