[TASK] Keep the changes to PackageStates.php low 32/27932/5
authorMarkus Klein <klein.t3@mfc-linz.at>
Fri, 28 Feb 2014 10:06:34 +0000 (11:06 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 24 Jul 2014 18:04:59 +0000 (20:04 +0200)
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: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Package/DependencyResolver.php

index f98b42a..aed6c13 100644 (file)
@@ -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'])) {