0

I installed the payum/payum-bundle with composer (using the PHP Storm Plugin). I couldn't install a version newer to 2.0.1 because the newer version seems not to be marked as stable (minimum-stability in composer.lock is "stable"). I too installed the payum/paypal-express-checkout-nvp bundle to add paypay express support. I set everything up, created a controller to test it and ended up getting the error

Attempted to load trait "GatewayAwareTrait" from namespace "Payum\Core".
Did you forget a "use" statement for another namespace?

According to this (closed) issue the problem seems to be that payum/core is at version 1.2.8 but should be at least 1.3

https://github.com/Payum/PayumBundle/issues/367

Obviously the payum/bundle installation in version 2.0.1 installed the core-part with 1.2.8. Now... How can I force composer to update the payum/core to at least 1.3?

What I need to do is either tell composer to ignore the minimum-stability for this single bundle or to set the minimum-stability to something less then stable (which I assume not being the best idea especialy when not permanently following all dev branches of all used packages) and a hint on how then to update the payum/core part.

Any hints are very wellcome - I am stuck here...

4

2 回答 2

0

你的假设是错误的,payum/payum-bundle 的 2.1.0 版本被标记为稳定。

为了找出您不安装它的原因,我们需要您的composer.json.

您是否跑步composer update是为了尝试更新到所有内容的最新包?

于 2016-06-09T22:18:47.023 回答
0

由于 1.3.0 Payum 需要一个虚拟包http 客户端。您必须将其中一个实现添加为一个包,之后作曲家将允许您升级 payum。

该文档建议您安装php-http/guzzle6-adapter 但您可以选择客户端的任何其他实现。

php composer.phar update payum/core php-http/guzzle6-adapter
于 2016-06-10T06:41:05.580 回答