weixin_39636609
weixin_39636609
2021-01-08 21:28

jsonrpc 消费者端注入”服务介面“

环境: os: MacOS hyperf/framework: v2.0.11 php : PHP 7.4.8 swoole: 4.5.3

错误画面: image

在Consumer的IndexController 进行注入服务介面,在进行请求时出现错误讯息:


Error while injecting dependencies into App\Controller\IndexController: No entry or class found for 
'App\JsonRpc\CalculatorServiceInterface'[101] in /Users/yangxuanming/IdeaProjects/
hyperf-course/consumer/vendor/hyperf/di/src/Resolver/ObjectResolver.php

请问这个会是什么问题?

上述范例是参考视频

该提问来源于开源项目:hyperf/hyperf

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换