1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Refactor ComposerRepository to work with combined repos having lazy providers and partial packages

This commit is contained in:
Jordi Boggiano 2018-12-04 17:03:56 +01:00
parent 14d6bcedda
commit b47330adf1
4 changed files with 296 additions and 267 deletions

View file

@ -317,8 +317,8 @@ EOT
} else {
$type = 'available';
}
if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
foreach ($repo->getProviderNames() as $name) {
if ($repo instanceof ComposerRepository) {
foreach ($repo->getPackageNames() as $name) {
if (!$packageFilter || preg_match($packageFilter, $name)) {
$packages[$type][$name] = $name;
}