-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description
It may happen that two different modules require the same namespace when integrating third-party modules via Composer. Here's an example:
Generated Code in vendor-mmlc/autoload.php
Module A
$loader->setPsr4('Stripe\\', DIR_FS_DOCUMENT_ROOT . 'vendor-mmlc/robinthehood/stripe/vendor/stripe/stripe-php/lib');Module B
$loader->setPsr4('Stripe\\', DIR_FS_DOCUMENT_ROOT . 'vendor-mmlc/maxmustermann/stripe/vendor/stripe/stripe-php/lib');Problem
Composer cannot load both modules under the same namespace Stripe. This results in a conflict, as both modules attempt to define the same namespace but point to different locations.
Proposed Solution
A solution must be devised to resolve this namespace conflict, allowing both modules to coexist without interfering with each other.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
No status