Take into account a package's "provide" and "replace" fields

A package can satisfy a require by its "provide" or "replace" fields,
so this leverages the getNames() method which returns these alternate
names as well.
main
Stephen Beemsterboer 7 years ago
parent 6c4800b8d2
commit 4cda7e0a44

@ -755,9 +755,9 @@ class Installer
continue;
}
if ($package->getType() === 'composer-plugin'
if ($package->getType() === 'composer-plugin'
|| $package->getType() === 'composer-installer'
|| in_array($package->getName(), $installerRequires)
|| count(array_intersect($package->getNames(), $installerRequires))
) {
// capture the requirements for this package so those packages will be moved up as well
$installerRequires = array_merge($installerRequires, array_keys($package->getRequires()));

Loading…
Cancel
Save