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