|
@@ 486-494 (lines=9) @@
|
| 483 |
|
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config) |
| 484 |
|
{ |
| 485 |
|
$httpClient = $config['discovery']['client']; |
| 486 |
|
if ('auto' !== $httpClient) { |
| 487 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_client'); |
| 488 |
|
$container->removeDefinition('httplug.collector.auto_discovered_client'); |
| 489 |
|
|
| 490 |
|
if (!empty($httpClient)) { |
| 491 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_client', $httpClient); |
| 492 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_client')->setPublic(false); |
| 493 |
|
} |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 497 |
|
if ('auto' !== $asyncHttpClient) { |
|
@@ 497-505 (lines=9) @@
|
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 497 |
|
if ('auto' !== $asyncHttpClient) { |
| 498 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_async'); |
| 499 |
|
$container->removeDefinition('httplug.collector.auto_discovered_async'); |
| 500 |
|
|
| 501 |
|
if (!empty($asyncHttpClient)) { |
| 502 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_async', $asyncHttpClient); |
| 503 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_async')->setPublic(false); |
| 504 |
|
} |
| 505 |
|
} |
| 506 |
|
|
| 507 |
|
if (null === $httpClient && null === $asyncHttpClient) { |
| 508 |
|
$container->removeDefinition('httplug.strategy'); |