Explorar o código

Add the include_paths.php autoload file to the phar when it is present

Jordi Boggiano %!s(int64=12) %!d(string=hai) anos
pai
achega
cee34b4faa
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/Composer/Compiler.php

+ 3 - 0
src/Composer/Compiler.php

@@ -94,6 +94,9 @@ class Compiler
         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_namespaces.php'));
         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_classmap.php'));
         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_real.php'));
+        if (file_exists(__DIR__.'/../../vendor/composer/include_paths.php')) {
+            $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/include_paths.php'));
+        }
         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/ClassLoader.php'));
         $this->addComposerBin($phar);