From 72570f929dfa8effe4d361ba128175a2bc2892ab Mon Sep 17 00:00:00 2001 From: Juan Lotito Date: Wed, 22 Nov 2023 12:02:04 +0100 Subject: [PATCH] adapting service provider to give more flexibility --- src/ServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 76af425..3f5e356 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -49,8 +49,8 @@ public function register() $this->app->bind(AmqpMiddleware::class, function () { return new AmqpMiddleware( - new AmqpMessageFactory(), - new Amqp(), + resolve(AmqpMessageFactory::class), + resolve(Amqp::class), config('transactional-event-publisher.properties.amqp') ); });