Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function process(ContainerBuilder $container) |
||
11 | { |
||
12 | $clientServiceId = $container->getParameter('devhelp_piwik.client.service_id'); |
||
13 | |||
14 | if (!$container->hasDefinition($clientServiceId)) { |
||
15 | throw new \InvalidArgumentException("$clientServiceId service does not exist"); |
||
16 | } |
||
17 | |||
18 | $container->setAlias('devhelp_piwik.client', $clientServiceId); |
||
19 | } |
||
20 | } |
||
21 |