tcc-transaction
tcc-transaction copied to clipboard
报错情况
复现 拉取代码创建 composer create-project hyperf/hyperf-skeleton xxx -W 生成配置文件php bin/hyperf.php vendor:publish loyaltylu/tcc-transaction 报错 PHP Fatal error: Class Hyperf\Di\Container contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Hyperf\Contract\ContainerInterface::unbind) in /WWW/mictest/mic07-tcc-transaction2/vendor/hyperf/di/src/Container.php on line 22
原因是没有实现ContainerInterface的unbind方法
没有适配最新版本hyperf可以尝试下2.0版本hyperf
我在你的文件里写了个空unbind方法 可以执行生成配置文件了