Skip to content
Snippets Groups Projects
Commit 8eca965b authored by Markus Klein's avatar Markus Klein Committed by Anja Leichsenring
Browse files

[TASK] Keep the changes to PackageStates.php low

Introduce a sort operation of the packages before determining
the loading order.
This way the number of changes made to the PackageStates.php file
are reduced.

This is only a first step, further improvements have to be made
to finally resolve #56362.

Resolves: #56362
Releases: 6.3, 6.2
Change-Id: Id6cc4cc2d3f4d9f00e90f355bdede1afe20f57af
Reviewed-on: http://review.typo3.org/27932


Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSusanne Moog <typo3@susannemoog.de>
Tested-by: default avatarSusanne Moog <typo3@susannemoog.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 4a7e508a
Branches
Tags
No related merge requests found
......@@ -128,6 +128,7 @@ class DependencyResolver {
*/
protected function buildDependencyGraphForPackages(array $packageStatesConfiguration, array $packageKeys) {
// Initialize the dependencies with FALSE
sort($packageKeys);
$dependencyGraph = array_fill_keys($packageKeys, array_fill_keys($packageKeys, FALSE));
foreach ($packageKeys as $packageKey) {
if (!isset($packageStatesConfiguration[$packageKey]['dependencies'])) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment