private function addVendorFiles(Phar $phar)
    {
        $vendorPath = __DIR__.'/../../vendor/';

        $requiredDependencies = [
            realpath($vendorPath.'symfony/'),
            realpath($vendorPath.'doctrine/'),
            realpath($vendorPath.'guzzlehttp'),
            realpath($vendorPath.'psr'),
        ];

        $finder = new Finder();
        $finder
            ->files()
            ->ignoreVCS(true)
            ->name('*.php')
            ->exclude(['Tests', 'tests'])
            ->in($requiredDependencies);

        foreach ($finder as $file) {
            $this->addFile($phar, $file);
        }

        return $this;
    }
private function addVendorFiles(Phar $phar)
    {
        $vendorPath = __DIR__.'/../../vendor/';

        $requiredDependencies = [
            realpath($vendorPath.'symfony/'),
            realpath($vendorPath.'doctrine/'),
            realpath($vendorPath.'guzzlehttp'),
            realpath($vendorPath.'psr'),
        ];

        $finder = new Finder();
        $finder
            ->files()
            ->ignoreVCS(true)
            ->name('*.php')
            ->exclude(['Tests', 'tests'])
            ->in($requiredDependencies);

        foreach ($finder as $file) {
            $this->addFile($phar, $file);
        }

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

@param Phar $phar Phar instance

@return Compiler self Object
Add vendor files