We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://hyperf.wiki/2.0/#/zh-cn/nacos 文档说明获取当时实例: $instance = new \Hyperf\Nacos\Instance();
看了Instance代码的实现,需要传ConfigInterface $config `class Instance extends InstanceModel { public function __construct(ConfigInterface $config) { $client = $config->get('nacos.client', []); if (! isset($client['service_name'])) { throw new InvalidArgumentException('nacos.client.service_name is required'); }
foreach ($client as $key => $val) { $key = Str::camel($key); if (property_exists($this, $key)) { $this->{$key} = $val; } } $this->ip = current(swoole_get_local_ip()); $this->port = $config->get('server.servers.0.port'); }
}`
获取当前服务也是: $service = new \Hyperf\Nacos\Service();
ConfigInterface $config好像传进去;可以更新一下文档吗?
The text was updated successfully, but these errors were encountered:
直接使用 make 就可以了
Sorry, something went wrong.
好,谢谢
No branches or pull requests
https://hyperf.wiki/2.0/#/zh-cn/nacos
文档说明获取当时实例:
$instance = new \Hyperf\Nacos\Instance();
看了Instance代码的实现,需要传ConfigInterface $config
`class Instance extends InstanceModel
{
public function __construct(ConfigInterface $config)
{
$client = $config->get('nacos.client', []);
if (! isset($client['service_name'])) {
throw new InvalidArgumentException('nacos.client.service_name is required');
}
}`
获取当前服务也是:
$service = new \Hyperf\Nacos\Service();
ConfigInterface $config好像传进去;可以更新一下文档吗?
The text was updated successfully, but these errors were encountered: