From f14f33074522eea2c8b6bcf6d7b279528d4d2d65 Mon Sep 17 00:00:00 2001 From: Mararok Date: Thu, 16 Jan 2020 10:21:51 +0100 Subject: [PATCH] fix AmqpConnectionService def (#12) --- src/SAREhub/Client/DI/Amqp/AmqpDefinitionsBase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SAREhub/Client/DI/Amqp/AmqpDefinitionsBase.php b/src/SAREhub/Client/DI/Amqp/AmqpDefinitionsBase.php index 47b3ba1..1dc82ff 100644 --- a/src/SAREhub/Client/DI/Amqp/AmqpDefinitionsBase.php +++ b/src/SAREhub/Client/DI/Amqp/AmqpDefinitionsBase.php @@ -74,8 +74,6 @@ protected abstract static function getMessageSenderExchange(): string; protected static function connectionServiceDef() { - $def = autowire(AmqpConnectionService::class) - ->method("addChannel", get(AmqpChannelWrapper::class)); - return BasicLoggingDefinitions::inject($def, "Amqp.ConnectionService"); + return BasicLoggingDefinitions::inject(autowire(AmqpConnectionService::class), "Amqp.ConnectionService"); } }