diff --git a/DependencyInjection/Compiler/AddSpreadCompilerPass.php b/DependencyInjection/Compiler/AddSpreadCompilerPass.php index 5f83012..86b85de 100644 --- a/DependencyInjection/Compiler/AddSpreadCompilerPass.php +++ b/DependencyInjection/Compiler/AddSpreadCompilerPass.php @@ -23,9 +23,10 @@ public function process(ContainerBuilder $container) } krsort($spreadByPriority); + $spreadByPriority = call_user_func_array('array_merge', $spreadByPriority); foreach ($spreadByPriority as $spreads) { - $spreadDeployer->addMethodCall('addSpread', $spreads); + $spreadDeployer->addMethodCall('addSpread', [$spreads]); } } }