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