lokielse / omnipay-wechatpay

(微信支付)WeChatPay driver for the Omnipay PHP payment processing library
MIT License
316 stars 103 forks source link

Please update dependency "omnipay/common" to version 3 #19

Closed videni closed 7 years ago

videni commented 7 years ago

We use this package with our Symfony 3 project, the package "omnipay/common" is dependent on "symfony/event-dispatcher" 2 version, which will conflict with same package in Symfony3, Please update the dependency to version 3, thanks a lot.

lokielse commented 7 years ago

omnipay/common 最新版本是2.5.1, 它是支持 symfony3 的(见 L32

请执行composer update lokielse/omnipay-wechatpay 更新依赖

videni commented 7 years ago

But the "guzzle/guzzle": "~3.9" requires "symfony/event-dispatcher": "~2.1", this is the problem

lokielse commented 7 years ago

的确,"guzzle/guzzle": "~3.9"依赖"symfony/event-dispatcher": "~2.1" 如果你的项目是确切的依赖"symfony/event-dispatcher": "~3.0"那就没办法了

一般是symfony/http-kernel需要依赖symfony/event-dispatcher, 但是依赖规则里面写的是"symfony/event-dispatcher": "~2.8|~3.0", 所以这样也是可以安装的

你把"lokielse/omnipay-wechatpay": "^1.0.19"加入到依赖里面,再执行composer update -vvv, 如果不行就真的是不行的,只有找omnipay/common的作者来更新了