|
@@ 461-469 (lines=9) @@
|
| 458 |
|
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config) |
| 459 |
|
{ |
| 460 |
|
$httpClient = $config['discovery']['client']; |
| 461 |
|
if ('auto' !== $httpClient) { |
| 462 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_client'); |
| 463 |
|
$container->removeDefinition('httplug.collector.auto_discovered_client'); |
| 464 |
|
|
| 465 |
|
if (!empty($httpClient)) { |
| 466 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_client', $httpClient); |
| 467 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_client')->setPublic(false); |
| 468 |
|
} |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 472 |
|
if ('auto' !== $asyncHttpClient) { |
|
@@ 472-480 (lines=9) @@
|
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 472 |
|
if ('auto' !== $asyncHttpClient) { |
| 473 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_async'); |
| 474 |
|
$container->removeDefinition('httplug.collector.auto_discovered_async'); |
| 475 |
|
|
| 476 |
|
if (!empty($asyncHttpClient)) { |
| 477 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_async', $asyncHttpClient); |
| 478 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_async')->setPublic(false); |
| 479 |
|
} |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
if (null === $httpClient && null === $asyncHttpClient) { |
| 483 |
|
$container->removeDefinition('httplug.strategy'); |