diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 5991083f7..b7a2820a6 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -294,6 +294,10 @@ EOF; $baseDir = '$vendorDir . '; } + if(preg_match('/\.phar$/', $path)){ + $baseDir = '"phar://" . ' . $baseDir; + } + return $baseDir.var_export($path, true); }