| @@ 359-366 (lines=8) @@ | ||
| 356 | /* |
|
| 357 | * Decorate the client with clients from client-common |
|
| 358 | */ |
|
| 359 | if ($arguments['flexible_client']) { |
|
| 360 | $container |
|
| 361 | ->register($serviceId.'.flexible', FlexibleHttpClient::class) |
|
| 362 | ->addArgument(new Reference($serviceId.'.flexible.inner')) |
|
| 363 | ->setPublic($arguments['public'] ? true : false) |
|
| 364 | ->setDecoratedService($serviceId) |
|
| 365 | ; |
|
| 366 | } |
|
| 367 | ||
| 368 | if ($arguments['http_methods_client']) { |
|
| 369 | $container |
|
| @@ 368-375 (lines=8) @@ | ||
| 365 | ; |
|
| 366 | } |
|
| 367 | ||
| 368 | if ($arguments['http_methods_client']) { |
|
| 369 | $container |
|
| 370 | ->register($serviceId.'.http_methods', HttpMethodsClient::class) |
|
| 371 | ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')]) |
|
| 372 | ->setPublic($arguments['public'] ? true : false) |
|
| 373 | ->setDecoratedService($serviceId) |
|
| 374 | ; |
|
| 375 | } |
|
| 376 | ||
| 377 | if ($arguments['batch_client']) { |
|
| 378 | $container |
|
| @@ 377-384 (lines=8) @@ | ||
| 374 | ; |
|
| 375 | } |
|
| 376 | ||
| 377 | if ($arguments['batch_client']) { |
|
| 378 | $container |
|
| 379 | ->register($serviceId.'.batch_client', BatchClient::class) |
|
| 380 | ->setArguments([new Reference($serviceId.'.batch_client.inner')]) |
|
| 381 | ->setPublic($arguments['public'] ? true : false) |
|
| 382 | ->setDecoratedService($serviceId) |
|
| 383 | ; |
|
| 384 | } |
|
| 385 | } |
|
| 386 | ||
| 387 | /** |
|