Skip to content

Conflicting Namespace for Modules Integrated via Composer #162

Description

@RobinTheHood

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions