|
@@ 352-363 (lines=12) @@
|
| 349 |
|
{ |
| 350 |
|
$httpClient = $config['discovery']['client']; |
| 351 |
|
|
| 352 |
|
if (!empty($httpClient)) { |
| 353 |
|
if ($httpClient === 'auto') { |
| 354 |
|
$httpClient = $this->registerAutoDiscoverableClient( |
| 355 |
|
$container, |
| 356 |
|
'auto_discovered_client', |
| 357 |
|
[HttpClientDiscovery::class, 'find'], |
| 358 |
|
$this->isConfigEnabled($container, $config['profiling']) |
| 359 |
|
); |
| 360 |
|
} |
| 361 |
|
|
| 362 |
|
$httpClient = new Reference($httpClient); |
| 363 |
|
} |
| 364 |
|
|
| 365 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 366 |
|
|
|
@@ 367-378 (lines=12) @@
|
| 364 |
|
|
| 365 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 366 |
|
|
| 367 |
|
if (!empty($asyncHttpClient)) { |
| 368 |
|
if ($asyncHttpClient === 'auto') { |
| 369 |
|
$asyncHttpClient = $this->registerAutoDiscoverableClient( |
| 370 |
|
$container, |
| 371 |
|
'auto_discovered_async', |
| 372 |
|
[HttpAsyncClientDiscovery::class, 'find'], |
| 373 |
|
$this->isConfigEnabled($container, $config['profiling']) |
| 374 |
|
); |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
$asyncHttpClient = new Reference($asyncHttpClient); |
| 378 |
|
} |
| 379 |
|
|
| 380 |
|
$container |
| 381 |
|
->getDefinition('httplug.strategy') |