From 164dc2a0975345b2475261de5c9bc51bf89f0ef9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 1 May 2015 14:23:20 +0100 Subject: [PATCH] Reuse prefix only if no prefix is defined --- src/Composer/Autoload/AutoloadGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 3e78494a6..52166083c 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/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];