We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94073e2 commit d875236Copy full SHA for d875236
lib/internal/Magento/Framework/Module/ModuleList/Loader.php
@@ -78,6 +78,8 @@ public function __construct(
78
public function load(array $exclude = [])
79
{
80
$result = [];
81
+ $excludeSet = array_flip($exclude);
82
+
83
foreach ($this->getModuleConfigs() as list($file, $contents)) {
84
try {
85
$this->parser->loadXML($contents);
@@ -93,7 +95,7 @@ public function load(array $exclude = [])
93
95
94
96
$data = $this->converter->convert($this->parser->getDom());
97
$name = key($data);
- if (!in_array($name, $exclude)) {
98
+ if (!isset($excludeSet[$name])) {
99
$result[$name] = $data[$name];
100
}
101
0 commit comments