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