yansongda / pay-site

https://pay.yansongda.cn
2 stars 10 forks source link

webman 用户 #4

Closed Tinywan closed 2 years ago

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/yansongda/pay/EbdbNFzL3Af533HAFoWpdZe2c3nK
✅ Preview: https://pay-git-fork-tinywan-patch-1-yansongda.vercel.app

yansongda commented 2 years ago

测过么?这个正常来说不行吧?

https://github.com/yansongda

这里都没调整

Tinywan commented 2 years ago

测试过了的。这是我写的文档

yansongda commented 2 years ago

v3.1 用在 webman 下不需要安装额外的 container 实现么?

Tinywan commented 2 years ago

需要安装的,刚用新项目试了一下不行,否则报错:Yansongda\Pay\Exception\ContainerNotFoundException: Init failed! Maybe you should install php-di/php-di first in

当初是其他依赖包安装这个di了,我以为不用也可以的

# composer why php-di/php-di
tinywan/casbin  v0.0.9  requires  php-di/php-di (^6.3)  

官方的这个容器实现是否可以改动一下就可以了?https://github.com/walkor/webman-framework/blob/master/src/Container.php

yansongda commented 2 years ago

是的,改下应该就行

你参考 https://github.com/yansongda/pay/blob/master/src/Service/ContainerServiceProvider.php 尝试着改下吧

Tinywan commented 2 years ago

刚看了一下,需要传个 $name ,不知道要传什么