| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function process(ContainerBuilder $container): void |
||
| 18 | { |
||
| 19 | if ($container->hasParameter(self::HTTP_CLIENT_PARAMETER)) { |
||
| 20 | if (!$container->has($container->getParameter(self::HTTP_CLIENT_PARAMETER))) { |
||
|
|
|||
| 21 | throw new ServiceNotFoundException($container->getParameter(self::HTTP_CLIENT_PARAMETER)); |
||
| 22 | } |
||
| 23 | |||
| 24 | $container->setAlias(self::HTTP_CLIENT_SERVICE_ID, $container->getParameter(self::HTTP_CLIENT_PARAMETER)); |
||
| 25 | } elseif ($container->has(BuzzClientInterface::class)) { |
||
| 26 | $container->setAlias(self::HTTP_CLIENT_SERVICE_ID, BuzzClientInterface::class); |
||
| 27 | } |
||
| 30 |