composer/composer — pull request #1313 by Seldaek (2012-11-10 21:02:34+00:00)
Title: Allow loading of multiple composer autoloaders concurrently, fixes #1248

Fixes #1248 - Replaces #1297 and #1310

This suffixes the ComposerAutoloaderInit class so that two of them can be loaded at once, and it defines a temporary autoloader just for the sake of loading the ClassLoader, that way we only load it once.

It avoids any conditional includes and lambdas so I think it should play well with APC. The only other way to prevent the ClassLoader from blowing everything up would be to suffix it as well, but I'd rather avoid that because people might be interested in reusing it by name or finding it in the `spl_autoload_functions()` using instanceof.

Comments welcome /cc @simensen @epicwhale @stof