{
$services = array();
- foreach ($container->findTaggedServiceIds($tagName) as $serviceId => $attributes) {
+ foreach ($container->findTaggedServiceIds($tagName, true) as $serviceId => $attributes) {
$priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;
$services[$priority][] = new Reference($serviceId);
}