Skip to content

Commit

Permalink
Make provider not deferrable
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Nagirnyi committed Sep 25, 2020
1 parent e6681ba commit 47372fa
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/BusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace TheRezor\TransactionalJobs;

use Illuminate\Bus\Dispatcher;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Database\Events\TransactionBeginning;
use Illuminate\Database\Events\TransactionCommitted;
use Illuminate\Database\Events\TransactionRolledBack;
Expand All @@ -14,7 +13,7 @@
use Illuminate\Contracts\Queue\Factory as QueueFactoryContract;
use Illuminate\Contracts\Bus\QueueingDispatcher as QueueingDispatcherContract;

class BusServiceProvider extends ServiceProvider implements DeferrableProvider
class BusServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
Expand Down Expand Up @@ -59,20 +58,5 @@ public function boot()
$this->app->make(TransactionalDispatcher::class)->rollbackTransaction();
});
}

/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
Dispatcher::class,
TransactionalDispatcher::class,
DispatcherContract::class,
QueueingDispatcherContract::class,
];
}
}

0 comments on commit 47372fa

Please sign in to comment.