Explorar o código

Fix for issue #6492

Able to include specific finle in phar in "files" option in composer
Saumini Navaratnam %!s(int64=7) %!d(string=hai) anos
pai
achega
27b8209990
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Composer/Autoload/AutoloadGenerator.php

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

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