Browse Source

Fix for issue #6492

Able to include specific finle in phar in "files" option in composer
Saumini Navaratnam 7 years ago
parent
commit
27b8209990
1 changed files with 4 additions and 0 deletions
  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) : "");
     }