From 67eb74d0b1e94d4cfd3d53da1712f92a4709ab34 Mon Sep 17 00:00:00 2001 From: Lotykun Date: Wed, 22 Nov 2023 13:08:30 +0100 Subject: [PATCH] adapting service provider to give more flexibility (#39) Co-authored-by: Juan Lotito --- 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') ); });