diff --git a/bin/compile b/bin/compile index 3cdf790d7..62e111228 100755 --- a/bin/compile +++ b/bin/compile @@ -1,7 +1,12 @@ #!/usr/bin/env php addFile($phar, $file); } - $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../tests/bootstrap.php')); + $finder = new Finder(); + $finder->files() + ->ignoreVCS(true) + ->name('*.php') + ->in(__DIR__.'/../../vendor/symfony/') + ; + + foreach ($finder as $file) { + $this->addFile($phar, $file); + } + + $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/autoload.php')); + $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/.composer/autoload_namespaces.php')); $this->addComposerBin($phar); // Stubs