mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Suggest which providers could be required to fulfill a virtual package requirement, fixes #2811
This commit is contained in:
parent
3fc7e10c5c
commit
29efc473a1
3 changed files with 41 additions and 0 deletions
|
@ -158,6 +158,19 @@ class RepositorySet
|
|||
return $candidates;
|
||||
}
|
||||
|
||||
public function getProviders($packageName)
|
||||
{
|
||||
foreach ($this->repositories as $repository) {
|
||||
if ($repository instanceof ComposerRepository) {
|
||||
if ($providers = $repository->getProviders($packageName)) {
|
||||
return $providers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
public function isPackageAcceptable($names, $stability)
|
||||
{
|
||||
return StabilityFilter::isPackageAcceptable($this->acceptableStabilities, $this->stabilityFlags, $names, $stability);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue