| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Nwidart\LaravelBroadway\Broadway; |
||
| 33 | private function registerBindings() |
||
| 34 | { |
||
| 35 | $this->app->singleton(\Broadway\EventDispatcher\EventDispatcher::class, function () { |
||
| 36 | return new CallableEventDispatcher(); |
||
| 37 | }); |
||
| 38 | |||
| 39 | $this->app->singleton(\Broadway\EventHandling\EventBus::class, function () { |
||
| 40 | return new SimpleEventBus(); |
||
| 41 | }); |
||
| 42 | |||
| 43 | $this->app->singleton('laravelbroadway.event.registry', function ($app) { |
||
| 44 | return new EventRegistry($app[\Broadway\EventHandling\EventBus::class]); |
||
| 45 | }); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |