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