private function addVendorFiles(Phar $phar)
{
$vendorPath = __DIR__ . '/../../../vendor/';
/**
* All *.php files.
*/
$finder = new Finder();
$finder->files()->ignoreVCS(true)->name('*.php')->exclude('Tests')->in(realpath($vendorPath . 'symfony/'));
foreach ($finder as $file) {
$this->addFile($phar, $file);
}
return $this;
}