composer/composer — Issue #187: Consider making packages autoloadable as soon as they have been installed
Author: schmittjoh
Created: 2012-01-05 23:45:37+00:00
State: open

This would help with custom installers as they would already have access to all classes of the packages that they are about to install.

For custom installers themself, Composer currently generates and registeres a class map loader. However, these installers might also have dependencies which at the time when the installer is executed are not autoloadable. So, this ticket would solve that issue as well.

I'm not familar enough with the internals, but I think we could just copy the autoloader code which currently resides in the InstallerInstaller class to the LibraryInstaller class and generate a class map loader for each package. What do you think?