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 @@ -88,6 +88,8 @@ public function doOperation()
88
88
}
89
89
}
90
90
91
+ $ this ->sortDefinitions ($ definitionsCollection );
92
+
91
93
$ areaCodes = array_merge ([App \Area::AREA_GLOBAL ], $ this ->areaList ->getCodes ());
92
94
foreach ($ areaCodes as $ areaCode ) {
93
95
$ config = $ this ->configReader ->generateCachePerScope ($ definitionsCollection , $ areaCode );
@@ -124,4 +126,18 @@ public function getName()
124
126
{
125
127
return 'Area configuration aggregation ' ;
126
128
}
129
+
130
+ /**
131
+ * Sort definitions to make reproducible result
132
+ *
133
+ * @param DefinitionsCollection $definitionsCollection
134
+ */
135
+ private function sortDefinitions (DefinitionsCollection $ definitionsCollection ): void
136
+ {
137
+ $ definitions = $ definitionsCollection ->getCollection ();
138
+
139
+ ksort ($ definitions );
140
+
141
+ $ definitionsCollection ->initialize ($ definitions );
142
+ }
127
143
}
You can’t perform that action at this time.
0 commit comments