Skip to content

Commit 808dc8e

Browse files
authored
Merge pull request #204 from 7thcubic/7thcubic-patch-2
Multiple spread classes failure to load
2 parents 744b43c + 996753f commit 808dc8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DependencyInjection/Compiler/AddSpreadCompilerPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ public function process(ContainerBuilder $container)
2323
}
2424

2525
krsort($spreadByPriority);
26+
$spreadByPriority = call_user_func_array('array_merge', $spreadByPriority);
2627

2728
foreach ($spreadByPriority as $spreads) {
28-
$spreadDeployer->addMethodCall('addSpread', $spreads);
29+
$spreadDeployer->addMethodCall('addSpread', [$spreads]);
2930
}
3031
}
3132
}

0 commit comments

Comments
 (0)