Skip to content

Commit bc97696

Browse files
fixed compiler pass
1 parent 1513633 commit bc97696

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DependencyInjection/WorkerCompilerPass.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ public function process(ContainerBuilder $container)
3030

3131
$taggedServices = $container->findTaggedServiceIds(self::WORKER_TAG);
3232
foreach ($taggedServices as $id => $tags) {
33-
$definition->addMethodCall(self::ADD_FUNCTION_NAME, array(new Reference($id)));
33+
foreach ($tags as $attributes) {
34+
$definition->addMethodCall(
35+
self::ADD_FUNCTION_NAME,
36+
array($attributes['namespace'], $attributes['worker-name'], new Reference($id))
37+
);
38+
}
3439
}
3540
}
3641
}

0 commit comments

Comments
 (0)