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