composer/composer — pull request #1002 by onigoetz (2012-08-14 22:02:37+00:00)
Title: Created a new autoloader able to manage all composer class maps at once

Hi,
This is a work in progress pull request.

I'm working on a ComposerAutoloaderInit that uses a static loader.

The advantages would be that you can load as many composer "autoload.php" files and use only one loader.

It doesn't work for the moment for some reasons :
- the generated code is not generic any project could use an other Init class
- there is an Hard coded __DIR__ that makes it impossible to load other classes

The objective behind this is that in my case, I have a home made framework (based on CodeIgniter) that is adapter to make some HMVC

and some modules need some external dependencies.
so they have a composer.json file

and I don't want to make one big composer.json file at the root of my project because the modules are not always loaded. So I don't need these classes / namespaces in my classmap

The idea is simply that there is only one initialized class that manages all composer autoloading stuff, I don't need to have 2, 3, 4 or more composer classes that each manage a subset of my classes.

Tell me if it's an interesting thing for you and I'll work on the last parts that don't work for the moment