1
0
Fork 0

Do not reverse sorted packages, fixes #8320

pull/8944/head
Jordi Boggiano 2020-06-03 09:42:16 +02:00
parent fafa959933
commit 8d3ec0f718
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -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;