Skip to content

Commit 996753f

Browse files
authored
Multiple spread classes failure to load
Multiple spread classes will fail to be loaded into the deployer due to improper code. Expected compiler pass result: $instance->addSpread(spread1); $instance->addSpread(spread2); ... Current compiler pass: $instance->addSpread(spread1,spread2,...)
1 parent 744b43c commit 996753f

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)