public static function create(ProjectInterface $project) { /** @var GitVersionCollection $gitVersionCollection */ $gitVersionCollection = GitVersionCollection::create($project->getDir()); foreach ($project->getTags() as $tag) { $gitVersionCollection->addFromTags($tag); } foreach ($project->getBranches() as $branch => $title) { $gitVersionCollection->add($branch, $title); } return $gitVersionCollection; }
/** * @param KernelInterface $kernel * @param ProjectInterface $project * * @return Finder */ public static function create(KernelInterface $kernel, ProjectInterface $project) { return Finder::create()->files()->name('*.php')->exclude('Resources')->exclude('Tests')->in($kernel->getBuildDir() . '/' . $project->getDir()); }