|
@@ 451-459 (lines=9) @@
|
| 448 |
|
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config) |
| 449 |
|
{ |
| 450 |
|
$httpClient = $config['discovery']['client']; |
| 451 |
|
if ('auto' !== $httpClient) { |
| 452 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_client'); |
| 453 |
|
$container->removeDefinition('httplug.collector.auto_discovered_client'); |
| 454 |
|
|
| 455 |
|
if (!empty($httpClient)) { |
| 456 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_client', $httpClient); |
| 457 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_client')->setPublic(false); |
| 458 |
|
} |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 462 |
|
if ('auto' !== $asyncHttpClient) { |
|
@@ 462-470 (lines=9) @@
|
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 462 |
|
if ('auto' !== $asyncHttpClient) { |
| 463 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_async'); |
| 464 |
|
$container->removeDefinition('httplug.collector.auto_discovered_async'); |
| 465 |
|
|
| 466 |
|
if (!empty($asyncHttpClient)) { |
| 467 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_async', $asyncHttpClient); |
| 468 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_async')->setPublic(false); |
| 469 |
|
} |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
if (null === $httpClient && null === $asyncHttpClient) { |
| 473 |
|
$container->removeDefinition('httplug.strategy'); |