function ShowCommand::getRepositorySet
1 call to ShowCommand::getRepositorySet()
- ShowCommand::findLatestPackage in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php - Given a package, this finds the latest package matching it
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php, line 1523
Class
- ShowCommand
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Jérémy Romey <jeremyFreeAgent> @author Mihai Plasoianu <mihai@plasoianu.de>
Namespace
Composer\CommandCode
private function getRepositorySet(Composer $composer) : RepositorySet {
if (!$this->repositorySet) {
$this->repositorySet = new RepositorySet($composer->getPackage()
->getMinimumStability(), $composer->getPackage()
->getStabilityFlags());
$this->repositorySet
->addRepository(new CompositeRepository($composer->getRepositoryManager()
->getRepositories()));
}
return $this->repositorySet;
}