|
@@ 395-406 (lines=12) @@
|
| 392 |
|
{ |
| 393 |
|
$httpClient = $config['discovery']['client']; |
| 394 |
|
|
| 395 |
|
if (!empty($httpClient)) { |
| 396 |
|
if ($httpClient === 'auto') { |
| 397 |
|
$httpClient = $this->registerAutoDiscoverableClient( |
| 398 |
|
$container, |
| 399 |
|
'auto_discovered_client', |
| 400 |
|
[HttpClientDiscovery::class, 'find'], |
| 401 |
|
$this->isConfigEnabled($container, $config['profiling']) |
| 402 |
|
); |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
$httpClient = new Reference($httpClient); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 409 |
|
|
|
@@ 410-421 (lines=12) @@
|
| 407 |
|
|
| 408 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 409 |
|
|
| 410 |
|
if (!empty($asyncHttpClient)) { |
| 411 |
|
if ($asyncHttpClient === 'auto') { |
| 412 |
|
$asyncHttpClient = $this->registerAutoDiscoverableClient( |
| 413 |
|
$container, |
| 414 |
|
'auto_discovered_async', |
| 415 |
|
[HttpAsyncClientDiscovery::class, 'find'], |
| 416 |
|
$this->isConfigEnabled($container, $config['profiling']) |
| 417 |
|
); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
$asyncHttpClient = new Reference($asyncHttpClient); |
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
$container |
| 424 |
|
->getDefinition('httplug.strategy') |