Skip to content

Commit 6a0c682

Browse files
ENGCOM-6038: DI Compile - Sort DI metadata output to make diff between builds easier #24898
2 parents 1c9b57f + 9eca5fd commit 6a0c682

File tree

1 file changed

+6
-0
lines changed
  • setup/src/Magento/Setup/Module/Di/Compiler/Config

1 file changed

+6
-0
lines changed

setup/src/Magento/Setup/Module/Di/Compiler/Config/Reader.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public function generateCachePerScope(
9999
foreach (array_keys($areaConfig->getVirtualTypes()) as $virtualType) {
100100
$config['instanceTypes'][$virtualType] = $areaConfig->getInstanceType($virtualType);
101101
}
102+
103+
// sort configuration to have it in the same order on every build
104+
ksort($config['arguments']);
105+
ksort($config['preferences']);
106+
ksort($config['instanceTypes']);
107+
102108
return $config;
103109
}
104110

0 commit comments

Comments
 (0)