@@ 373-384 (lines=12) @@ | ||
370 | { |
|
371 | $httpClient = $config['discovery']['client']; |
|
372 | ||
373 | if (!empty($httpClient)) { |
|
374 | if ($httpClient === 'auto') { |
|
375 | $httpClient = $this->registerAutoDiscoverableClient( |
|
376 | $container, |
|
377 | 'auto_discovered_client', |
|
378 | [HttpClientDiscovery::class, 'find'], |
|
379 | $this->isConfigEnabled($container, $config['profiling']) |
|
380 | ); |
|
381 | } |
|
382 | ||
383 | $httpClient = new Reference($httpClient); |
|
384 | } |
|
385 | ||
386 | $asyncHttpClient = $config['discovery']['async_client']; |
|
387 | ||
@@ 388-399 (lines=12) @@ | ||
385 | ||
386 | $asyncHttpClient = $config['discovery']['async_client']; |
|
387 | ||
388 | if (!empty($asyncHttpClient)) { |
|
389 | if ($asyncHttpClient === 'auto') { |
|
390 | $asyncHttpClient = $this->registerAutoDiscoverableClient( |
|
391 | $container, |
|
392 | 'auto_discovered_async', |
|
393 | [HttpAsyncClientDiscovery::class, 'find'], |
|
394 | $this->isConfigEnabled($container, $config['profiling']) |
|
395 | ); |
|
396 | } |
|
397 | ||
398 | $asyncHttpClient = new Reference($asyncHttpClient); |
|
399 | } |
|
400 | ||
401 | $container |
|
402 | ->getDefinition('httplug.strategy') |