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;
    }