| @@ 406-413 (lines=8) @@ | ||
| 403 | /* |
|
| 404 | * Decorate the client with clients from client-common |
|
| 405 | */ |
|
| 406 | if ($arguments['flexible_client']) { |
|
| 407 | $container |
|
| 408 | ->register($serviceId.'.flexible', FlexibleHttpClient::class) |
|
| 409 | ->addArgument(new Reference($serviceId.'.flexible.inner')) |
|
| 410 | ->setPublic($arguments['public'] ? true : false) |
|
| 411 | ->setDecoratedService($serviceId) |
|
| 412 | ; |
|
| 413 | } |
|
| 414 | ||
| 415 | if ($arguments['http_methods_client']) { |
|
| 416 | $container |
|
| @@ 415-422 (lines=8) @@ | ||
| 412 | ; |
|
| 413 | } |
|
| 414 | ||
| 415 | if ($arguments['http_methods_client']) { |
|
| 416 | $container |
|
| 417 | ->register($serviceId.'.http_methods', HttpMethodsClient::class) |
|
| 418 | ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')]) |
|
| 419 | ->setPublic($arguments['public'] ? true : false) |
|
| 420 | ->setDecoratedService($serviceId) |
|
| 421 | ; |
|
| 422 | } |
|
| 423 | ||
| 424 | if ($arguments['batch_client']) { |
|
| 425 | $container |
|
| @@ 424-431 (lines=8) @@ | ||
| 421 | ; |
|
| 422 | } |
|
| 423 | ||
| 424 | if ($arguments['batch_client']) { |
|
| 425 | $container |
|
| 426 | ->register($serviceId.'.batch_client', BatchClient::class) |
|
| 427 | ->setArguments([new Reference($serviceId.'.batch_client.inner')]) |
|
| 428 | ->setPublic($arguments['public'] ? true : false) |
|
| 429 | ->setDecoratedService($serviceId) |
|
| 430 | ; |
|
| 431 | } |
|
| 432 | } |
|
| 433 | ||
| 434 | /** |
|