mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Fixed config of config_center.drivers.nacos.client
does not work. (#3926)
This commit is contained in:
parent
107e08d185
commit
8b6d3f6d52
@ -3,6 +3,7 @@
|
||||
## Fixed
|
||||
|
||||
- [#3925](https://github.com/hyperf/hyperf/pull/3925) Fixed bug that heartbeat failed caused by nacos light beat enabled.
|
||||
- [#3926](https://github.com/hyperf/hyperf/pull/3926) Fixed bug that the config of `config_center.drivers.nacos.client` does not work.
|
||||
|
||||
## Added
|
||||
|
||||
|
@ -20,7 +20,7 @@ class NacosClientFactory
|
||||
{
|
||||
public function __invoke(ContainerInterface $container)
|
||||
{
|
||||
$config = $container->get(ConfigInterface::class)->get('config-center.drivers.nacos.client', []);
|
||||
$config = $container->get(ConfigInterface::class)->get('config_center.drivers.nacos.client', []);
|
||||
if (empty($config)) {
|
||||
return $container->get(Application::class);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user