Skip to content

Commit

Permalink
first param is event name
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Oct 10, 2016
1 parent bc459d3 commit 06eefdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function process(ContainerBuilder $container)

$definition = $container->findDefinition('domain_event.locator.named_event');
foreach ($container->findTaggedServiceIds('domain_event.named_event_listener') as $id => $attributes) {
$definition->addMethodCall('register', [new Reference($id), $attributes[0]['event']]);
$definition->addMethodCall('register', [$attributes[0]['event'], new Reference($id)]);
}
}
}

0 comments on commit 06eefdf

Please sign in to comment.