Explorar el Código

Reuse prefix only if no prefix is defined

Jordi Boggiano hace 10 años
padre
commit
164dc2a097
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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];