且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Prestashop 1.6,冲突:2个不同的模块需要相同的类,不同的版本

更新时间:2023-09-08 20:08:16

如果orangeConnect模块的官方维护者没有升级代码,则只能采用3种方法:

If the official maintainer of orangeConnect module doesn't upgrade the code, there are only 3 methods you can take:

方法1:您可以维护自己的orangeConnect代码的副本,并升级到最新的Guzzle.通常,这并不困难,因为Guzzle的界面设计合理.

Method 1: You can maintain a copy of your own orangeConnect code, and upgrade to latest Guzzle. Usually it won't be to difficult because Guzzle's interface are well designed.

方法2:获取旧的Guzzle代码并将其放入新的命名空间(例如:OldGuzzle),并使orangeConnect使用OldGuzzle命名空间.您可以通过简单地执行全局正则表达式替换来实现此目的.

Method 2: Get the old Guzzle's code and put it into a new namespace (eg: OldGuzzle) and make orangeConnect use OldGuzzle namespace. You can achieve this by do a global regex replace simply.

方法3 :(仅适用于大型系统)将PHP应用程序划分为微服务模块,并隔离orangeConnectAWS SDK,并使它们使用不同的Guzzle.

Method 3: (Only for big systems) Divide your PHP application to micro-service modules, and isolate orangeConnect and AWS SDK and make them use different Guzzle.