From cee34b4faa2185ff1649f75a9249dd83370b78ad Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 21 Feb 2013 18:53:39 +0100 Subject: [PATCH] Add the include_paths.php autoload file to the phar when it is present --- src/Composer/Compiler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php index e9431636f..58c4d85f5 100644 --- a/src/Composer/Compiler.php +++ b/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);