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