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:
parent
14d6bcedda
commit
b47330adf1
4 changed files with 296 additions and 267 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue