Skip to content

Commit

Permalink
adapting service provider to give more flexibility (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Lotito <[email protected]>
  • Loading branch information
Lotykun and Lotykun-Softonic authored Nov 22, 2023
1 parent d70397c commit 67eb74d
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 67eb74d

Please sign in to comment.