Skip to content

Commit 5861423

Browse files
DI Compile - Sort DI metadata output to make diff between builds easier
1 parent db0dce6 commit 5861423

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
@@ -98,6 +98,12 @@ public function generateCachePerScope(
9898
foreach (array_keys($areaConfig->getVirtualTypes()) as $virtualType) {
9999
$config['instanceTypes'][$virtualType] = $areaConfig->getInstanceType($virtualType);
100100
}
101+
102+
// sort configuration to have it in the same order on every build
103+
ksort($config['arguments']);
104+
ksort($config['preferences']);
105+
ksort($config['instanceTypes']);
106+
101107
return $config;
102108
}
103109

0 commit comments

Comments
 (0)