|
@@ 414-422 (lines=9) @@
|
| 411 |
|
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config) |
| 412 |
|
{ |
| 413 |
|
$httpClient = $config['discovery']['client']; |
| 414 |
|
if ('auto' !== $httpClient) { |
| 415 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_client'); |
| 416 |
|
$container->removeDefinition('httplug.collector.auto_discovered_client'); |
| 417 |
|
|
| 418 |
|
if (!empty($httpClient)) { |
| 419 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_client', $httpClient); |
| 420 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_client')->setPublic(false); |
| 421 |
|
} |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 425 |
|
if ('auto' !== $asyncHttpClient) { |
|
@@ 425-433 (lines=9) @@
|
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 425 |
|
if ('auto' !== $asyncHttpClient) { |
| 426 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_async'); |
| 427 |
|
$container->removeDefinition('httplug.collector.auto_discovered_async'); |
| 428 |
|
|
| 429 |
|
if (!empty($asyncHttpClient)) { |
| 430 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_async', $asyncHttpClient); |
| 431 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_async')->setPublic(false); |
| 432 |
|
} |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
if (null === $httpClient && null === $asyncHttpClient) { |
| 436 |
|
$container->removeDefinition('httplug.strategy'); |