| @@ 382-389 (lines=8) @@ | ||
| 379 | /* |
|
| 380 | * Decorate the client with clients from client-common |
|
| 381 | */ |
|
| 382 | if ($arguments['flexible_client']) { |
|
| 383 | $container |
|
| 384 | ->register($serviceId.'.flexible', FlexibleHttpClient::class) |
|
| 385 | ->addArgument(new Reference($serviceId.'.flexible.inner')) |
|
| 386 | ->setPublic($arguments['public'] ? true : false) |
|
| 387 | ->setDecoratedService($serviceId) |
|
| 388 | ; |
|
| 389 | } |
|
| 390 | ||
| 391 | if ($arguments['http_methods_client']) { |
|
| 392 | $container |
|
| @@ 391-398 (lines=8) @@ | ||
| 388 | ; |
|
| 389 | } |
|
| 390 | ||
| 391 | if ($arguments['http_methods_client']) { |
|
| 392 | $container |
|
| 393 | ->register($serviceId.'.http_methods', HttpMethodsClient::class) |
|
| 394 | ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')]) |
|
| 395 | ->setPublic($arguments['public'] ? true : false) |
|
| 396 | ->setDecoratedService($serviceId) |
|
| 397 | ; |
|
| 398 | } |
|
| 399 | ||
| 400 | if ($arguments['batch_client']) { |
|
| 401 | $container |
|
| @@ 400-407 (lines=8) @@ | ||
| 397 | ; |
|
| 398 | } |
|
| 399 | ||
| 400 | if ($arguments['batch_client']) { |
|
| 401 | $container |
|
| 402 | ->register($serviceId.'.batch_client', BatchClient::class) |
|
| 403 | ->setArguments([new Reference($serviceId.'.batch_client.inner')]) |
|
| 404 | ->setPublic($arguments['public'] ? true : false) |
|
| 405 | ->setDecoratedService($serviceId) |
|
| 406 | ; |
|
| 407 | } |
|
| 408 | } |
|
| 409 | ||
| 410 | /** |
|