So composer is awesome, and there's a lot of code in composer's packagist repository that makes writing Magento extensions easier.
The problem I'm facing, is how best to (cleanly) setup autoloading.
By default composer packages get installed to /vendor, and inside of that directory is an autoload.php file which sets up classloading for the composer managed packages.
So what would be the best way to require_once composer's '/vendor/autoload.php' file? This would need to work for both the webstore and shell scripts. Is there an observer event I can tap to do the require_once?
Cheers!
require_once $mageFilename
is called). This works well for client installations, and takes no rewriting files at all.