| @@ 431-438 (lines=8) @@ | ||
| 428 | /* |
|
| 429 | * Decorate the client with clients from client-common |
|
| 430 | */ |
|
| 431 | if ($arguments['flexible_client']) { |
|
| 432 | $container |
|
| 433 | ->register($serviceId.'.flexible', FlexibleHttpClient::class) |
|
| 434 | ->addArgument(new Reference($serviceId.'.flexible.inner')) |
|
| 435 | ->setPublic($arguments['public'] ? true : false) |
|
| 436 | ->setDecoratedService($serviceId) |
|
| 437 | ; |
|
| 438 | } |
|
| 439 | ||
| 440 | if ($arguments['http_methods_client']) { |
|
| 441 | $container |
|
| @@ 440-447 (lines=8) @@ | ||
| 437 | ; |
|
| 438 | } |
|
| 439 | ||
| 440 | if ($arguments['http_methods_client']) { |
|
| 441 | $container |
|
| 442 | ->register($serviceId.'.http_methods', HttpMethodsClient::class) |
|
| 443 | ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')]) |
|
| 444 | ->setPublic($arguments['public'] ? true : false) |
|
| 445 | ->setDecoratedService($serviceId) |
|
| 446 | ; |
|
| 447 | } |
|
| 448 | ||
| 449 | if ($arguments['batch_client']) { |
|
| 450 | $container |
|
| @@ 449-456 (lines=8) @@ | ||
| 446 | ; |
|
| 447 | } |
|
| 448 | ||
| 449 | if ($arguments['batch_client']) { |
|
| 450 | $container |
|
| 451 | ->register($serviceId.'.batch_client', BatchClient::class) |
|
| 452 | ->setArguments([new Reference($serviceId.'.batch_client.inner')]) |
|
| 453 | ->setPublic($arguments['public'] ? true : false) |
|
| 454 | ->setDecoratedService($serviceId) |
|
| 455 | ; |
|
| 456 | } |
|
| 457 | } |
|
| 458 | ||
| 459 | /** |
|