Do not reverse sorted packages, fixes #8320

main
Jordi Boggiano 4 years ago
parent fafa959933
commit 8d3ec0f718
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -347,6 +347,8 @@ class PluginManager
/**
* Load all plugins and installers from a repository
*
* If a plugin requires another plugin, the required one will be loaded first
*
* Note that plugins in the specified repository that rely on events that
* have fired prior to loading will be missed. This means you likely want to
* call this method as early as possible.
@ -358,7 +360,7 @@ class PluginManager
private function loadRepository(RepositoryInterface $repo)
{
$packages = $repo->getPackages();
$sortedPackages = array_reverse(PackageSorter::sortPackages($packages));
$sortedPackages = PackageSorter::sortPackages($packages);
foreach ($sortedPackages as $package) {
if (!($package instanceof CompletePackage)) {
continue;

Loading…
Cancel
Save