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