Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous class Doctrine\Common\EventSubscriber resolution #96

Closed
MartinMystikJonas opened this issue Apr 20, 2016 · 2 comments
Closed

Comments

@MartinMystikJonas
Copy link

This error appeared after upgrade to new version.

Reason is that we use RobotLoader on our composer vendor folder (as ugly fix for some libraries misbehaving autoload). This results in loading of file Doctrine/aliases.php even when Doctrine is already included.

I know that correct way would by to fix autoload in misbehaving libraries but I think this coud be problem for more people who does not rely on composer autoload functionality.

@fprochazka
Copy link
Member

fprochazka commented Apr 21, 2016

You should be able to create a robotloader.txt file that blacklists the directory.
Also adding only directories of the misbehaving libraries to robotloader might be a slighly better approach.

Thanks for opening this issue, but I really do not wish to make it easier for people to ignore or go against composer.

@MartinMystikJonas
Copy link
Author

I agree that fix should be elsewhere. It's just break of something that used to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants