|
@@ 401-409 (lines=9) @@
|
| 398 |
|
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config) |
| 399 |
|
{ |
| 400 |
|
$httpClient = $config['discovery']['client']; |
| 401 |
|
if ('auto' !== $httpClient) { |
| 402 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_client'); |
| 403 |
|
$container->removeDefinition('httplug.collector.auto_discovered_client'); |
| 404 |
|
|
| 405 |
|
if (!empty($httpClient)) { |
| 406 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_client', $httpClient); |
| 407 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_client')->setPublic(false); |
| 408 |
|
} |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 412 |
|
if ('auto' !== $asyncHttpClient) { |
|
@@ 412-420 (lines=9) @@
|
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
$asyncHttpClient = $config['discovery']['async_client']; |
| 412 |
|
if ('auto' !== $asyncHttpClient) { |
| 413 |
|
$container->removeDefinition('httplug.auto_discovery.auto_discovered_async'); |
| 414 |
|
$container->removeDefinition('httplug.collector.auto_discovered_async'); |
| 415 |
|
|
| 416 |
|
if (!empty($asyncHttpClient)) { |
| 417 |
|
$container->setAlias('httplug.auto_discovery.auto_discovered_async', $asyncHttpClient); |
| 418 |
|
$container->getAlias('httplug.auto_discovery.auto_discovered_async')->setPublic(false); |
| 419 |
|
} |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
if (null === $httpClient && null === $asyncHttpClient) { |
| 423 |
|
$container->removeDefinition('httplug.strategy'); |