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