Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #204 from 7thcubic/7thcubic-patch-2
Browse files Browse the repository at this point in the history
Multiple spread classes failure to load
  • Loading branch information
stephpy authored Oct 15, 2017
2 parents 744b43c + 996753f commit 808dc8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DependencyInjection/Compiler/AddSpreadCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
}

0 comments on commit 808dc8e

Please sign in to comment.