Hi,

The problem:
I'm managing dependencies and class autoloading using Composer Manager. So adding a 2nd autoloader is not required.

Proposed solution:
Add a composer.json to the project, indicating the PSR-4 root, and remove the dependency to Xautoload.
The project page should be updated to mention the possibility to use various autoloaders.

Patch attached implementing the proposed solution.

PS: I had to roll the patch against 2.0-alpha1 instead of 2.0-dev because the dev version is older than the alpha one...

Comments

manu manu created an issue. See original summary.

manu manu’s picture

Status: Active » Needs review

Forgot to set as needs review

pedrorocha’s picture

Status: Needs review » Closed (works as designed)

I'm not sure this can be done without impacting many other sites that will not be using composer. Yeah, they should, but with Drupal 7 we have many without it yet =/