|
@@ -526,12 +526,19 @@ EOF;
|
|
|
|
|
|
protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix)
|
|
|
{
|
|
|
+ $lastChar = $vendorPathToTargetDirCode[strlen($vendorPathToTargetDirCode)-1];
|
|
|
+ if ("'" === $lastChar || '"' === $lastChar) {
|
|
|
+ $vendorPathToTargetDirCode = substr($vendorPathToTargetDirCode, 0, -1).'/autoload_real.php'.$lastChar;
|
|
|
+ } else {
|
|
|
+ $vendorPathToTargetDirCode .= " . '/autoload_real.php'";
|
|
|
+ }
|
|
|
+
|
|
|
return <<<AUTOLOAD
|
|
|
<?php
|
|
|
|
|
|
// autoload.php @generated by Composer
|
|
|
|
|
|
-require_once $vendorPathToTargetDirCode . '/autoload_real.php';
|
|
|
+require_once $vendorPathToTargetDirCode;
|
|
|
|
|
|
return ComposerAutoloaderInit$suffix::getLoader();
|
|
|
|