Browse Source

Reuse prefix only if no prefix is defined

Jordi Boggiano 10 years ago
parent
commit
164dc2a097
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 1
src/Composer/Autoload/AutoloadGenerator.php

@@ -214,7 +214,7 @@ EOF;
         $classmapFile .= ");\n";
 
         if (!$suffix) {
-            if (is_readable($vendorPath.'/autoload.php')) {
+            if (!$config->get('autoloader-suffix') && is_readable($vendorPath.'/autoload.php')) {
                 $content = file_get_contents($vendorPath.'/autoload.php');
                 if (preg_match('{ComposerAutoloaderInit([^:\s]+)::}', $content, $match)) {
                     $suffix = $match[1];