1
0
Fork 0

Reuse prefix only if no prefix is defined

pull/3991/head
Jordi Boggiano 2015-05-01 14:23:20 +01:00
parent 96a44622a8
commit 164dc2a097
1 changed files with 1 additions and 1 deletions

View File

@ -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];