| @@ 260-265 (lines=6) @@ | ||
| 257 | ; |
|
| 258 | } |
|
| 259 | ||
| 260 | if ($arguments['http_methods_client']) { |
|
| 261 | $container |
|
| 262 | ->register($serviceId.'.http_methods', HttpMethodsClient::class) |
|
| 263 | ->setArguments([new Reference($serviceId.'.http_methods.inner'), new Reference('httplug.message_factory')]) |
|
| 264 | ->setPublic(false) |
|
| 265 | ->setDecoratedService($serviceId) |
|
| 266 | ; |
|
| 267 | } |
|
| 268 | } |
|
| @@ 251-256 (lines=6) @@ | ||
| 248 | /* |
|
| 249 | * Decorate the client with clients from client-common |
|
| 250 | */ |
|
| 251 | if ($arguments['flexible_client']) { |
|
| 252 | $container |
|
| 253 | ->register($serviceId.'.flexible', FlexibleHttpClient::class) |
|
| 254 | ->addArgument(new Reference($serviceId.'.flexible.inner')) |
|
| 255 | ->setPublic(false) |
|
| 256 | ->setDecoratedService($serviceId) |
|
| 257 | ; |
|
| 258 | } |
|
| 259 | ||