File tree 1 file changed +16
-0
lines changed
setup/src/Magento/Setup/Module/Di/App/Task/Operation 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ public function doOperation()
85
85
}
86
86
}
87
87
88
+ $ this ->sortDefinitions ($ definitionsCollection );
89
+
88
90
$ areaCodes = array_merge ([App \Area::AREA_GLOBAL ], $ this ->areaList ->getCodes ());
89
91
foreach ($ areaCodes as $ areaCode ) {
90
92
$ config = $ this ->configReader ->generateCachePerScope ($ definitionsCollection , $ areaCode );
@@ -121,4 +123,18 @@ public function getName()
121
123
{
122
124
return 'Area configuration aggregation ' ;
123
125
}
126
+
127
+ /**
128
+ * Sort definitions to make reproducible result
129
+ *
130
+ * @param DefinitionsCollection $definitionsCollection
131
+ */
132
+ private function sortDefinitions (DefinitionsCollection $ definitionsCollection ): void
133
+ {
134
+ $ definitions = $ definitionsCollection ->getCollection ();
135
+
136
+ ksort ($ definitions );
137
+
138
+ $ definitionsCollection ->initialize ($ definitions );
139
+ }
124
140
}
You can’t perform that action at this time.
0 commit comments