Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
13 | 2 | public function process(ContainerBuilder $container) |
|
14 | { |
||
15 | $expectedValues = [ |
||
16 | 2 | 'kunstmaan_adminlist.service.export.class' => \Kunstmaan\AdminListBundle\Service\ExportService::class, |
|
17 | ]; |
||
18 | |||
19 | 2 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
20 | 2 | if (false === $container->hasParameter($parameter)) { |
|
21 | 1 | continue; |
|
22 | } |
||
23 | |||
24 | 1 | $currentValue = $container->getParameter($parameter); |
|
25 | 1 | if ($currentValue !== $expectedValue) { |
|
26 | 1 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanAdminListBundle 5.2 and will be removed in KunstmaanAdminListBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
|
|||
27 | } |
||
28 | } |
||
29 | 2 | } |
|
30 | } |
||
31 |
If you suppress an error, we recommend checking for the error condition explicitly: