فهرست منبع

Revert "Fixed an issue when a phar file is used in "files" option in composer.json"

This reverts commit 41e91f3064cee51dd52f45831dc48748ce37a095.

The commit 41e91f3 in current codebase generates absolute path in
autoload_static.php for phar file.

Also according to http://php.net/manual/en/phar.using.intro.php, the `phar://`
prefix is not needed.
Li Chuangbo 8 سال پیش
والد
کامیت
1f4882a3e6
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      src/Composer/Autoload/AutoloadGenerator.php

+ 0 - 4
src/Composer/Autoload/AutoloadGenerator.php

@@ -534,10 +534,6 @@ EOF;
             }
         }
 
-        if (preg_match('/\.phar$/', $path)) {
-            $baseDir = "'phar://' . " . $baseDir;
-        }
-
         return $baseDir . (($path !== false) ? var_export($path, true) : "");
     }