Skip to content

Commit

Permalink
adapting service provider to give more flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotykun-Softonic committed Nov 22, 2023
1 parent d70397c commit 72570f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
);
});
Expand Down

0 comments on commit 72570f9

Please sign in to comment.