Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/0.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bramdevries committed Dec 16, 2016
2 parents 18c9235 + adbe118 commit ecde3c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ContextServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
namespace Madewithlove\LaravelCqrsEs;

use Broadway\EventHandling\EventBusInterface;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider;
use Illuminate\Support\ServiceProvider;
use Madewithlove\LaravelCqrsEs\EventHandling\ReplayingEventBusInterface;

abstract class ContextServiceProvider extends EventServiceProvider
abstract class ContextServiceProvider extends ServiceProvider
{
/**
* @var array
Expand All @@ -20,9 +19,9 @@ abstract class ContextServiceProvider extends EventServiceProvider
protected $processManagers = [];

/**
* @param DispatcherContract $events
*
*/
public function boot(DispatcherContract $events)
public function boot()
{
/** @var EventBusInterface $eventBus */
$liveEventBus = $this->app->make(EventBusInterface::class);
Expand All @@ -39,6 +38,7 @@ public function boot(DispatcherContract $events)
foreach ($this->processManagers as $processManager) {
$liveEventBus->subscribe($this->app->make($processManager));
}
parent::boot($events);

parent::boot();
}
}

0 comments on commit ecde3c8

Please sign in to comment.