JsonRpc 发布
注册服务的第四个参数publishTo 要安装两个组件 composer require hyperf/consul ; composer require hyperf/service-governance ; 看视频教程还有执行发布命令的 php bin/hyperf.php vendor:publish hyperf/consul 这个文档中没有找到相应的说明
还没看到文档中哪儿说明备注必须双引号的,不小心用单引号导致报语法错误启动失败,composer analyse也无法检测到
Uncaught Doctrine\Common\Annotations\AnnotationException: [Syn tax Error] Expected PlainValue, got ‘’’ at position 96 in class App\Rpc\Calculat orService. in /www/wwwroot/hyperf-test/provider/vendor/doctrine/annotations/lib/ Doctrine/Common/Annotations/AnnotationException.php:27