From 851fa547ce2ee84dbd533ffbeb100270c95de9f4 Mon Sep 17 00:00:00 2001 From: Iqbal Maulana Date: Mon, 6 Nov 2017 16:18:05 +0700 Subject: [PATCH] Bug fixing register bus plugin --- src/DependencyInjection/ProophServiceBusExtension.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DependencyInjection/ProophServiceBusExtension.php b/src/DependencyInjection/ProophServiceBusExtension.php index 90c33a1..7ec439d 100644 --- a/src/DependencyInjection/ProophServiceBusExtension.php +++ b/src/DependencyInjection/ProophServiceBusExtension.php @@ -131,9 +131,7 @@ private function loadBus(string $type, string $name, array $options, ContainerBu // Add plugin tag for plugins configured in the bus config foreach ($options['plugins'] as $pluginServiceId) { - $container - ->getDefinition($pluginServiceId) - ->addTag(sprintf('prooph_service_bus.%s.plugin', $name)); + $serviceBusDefinition->addMethodCall('addPlugin', [new Reference($pluginServiceId), $pluginServiceId]); } // Logging for each configured service bus