composer/composer — pull request #203 by simensen (2012-01-12 17:20:30+00:00)
Title: Override vendor PSR-0 autoloader

Adding a vendor namespace to a composer.json's autoloader PSR-0 section will take precedence over the vendor's own PSR-0 autoloader definition.

This was discussed some on IRC yesterday. @igorw thought that this should have worked out of the box but since the namespace would exist multiple times, PHP squashed the duplicate.

As suggested, I'm using the concept of whether or not the path looks like a vendor path to determine precedence. If a non-vendor path is available, that one is used.