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