D
D
DYLAN2020-12-16 19:20:48
PHP
DYLAN, 2020-12-16 19:20:48

How to solve package compatibility issue in PHP?

The essence of the problem is simple. Let's say we have a CMS that is built on packages (Prestashop, Magento, OctoberCMS, etc.). We wrote some module and use Guzzle version 7. A customer comes to us with a store on Prestashop ( https://github.com/PrestaShop/PrestaShop/blob/deve... which has guzzle version 5) and says, install me your module. We install it, and when we run it, we get an error, because kernel autoload will work and connect its guzzle. We can set prepend-autoloader = true in the composer.json of our module, but then this will lead to incorrect work of the CMS itself.

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question