Skip to content

Commit

Permalink
Fix service provider not registering SQS FIFO connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Unnawut Leepaisalsuwanna committed Dec 7, 2016
1 parent e6d41e7 commit c3ea2e8
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/LaravelSqsFifoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,16 @@

class LaravelSqsFifoServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;

/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$queueManager = $this->app['queue'];

$this->registerSqsFifoConnector($queueManager);
$this->app->afterResolving('queue', function ($manager) {
$this->registerSqsFifoConnector($manager);
});
}

/**
Expand Down

0 comments on commit c3ea2e8

Please sign in to comment.