| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Nwidart\LaravelBroadway\Broadway; |
||
| 7 | public function register() |
||
| 8 | { |
||
| 9 | $this->app->bind( |
||
| 10 | \Nwidart\LaravelBroadway\EventStore\EventStoreFactory::class, |
||
| 11 | \Nwidart\LaravelBroadway\EventStore\Broadway\BroadwayEventStoreFactory::class |
||
| 12 | ); |
||
| 13 | |||
| 14 | $this->app->bind( |
||
| 15 | \Broadway\EventSourcing\AggregateFactory\AggregateFactory::class, |
||
| 16 | \Broadway\EventSourcing\AggregateFactory\PublicConstructorAggregateFactory::class |
||
| 17 | ); |
||
| 18 | |||
| 19 | $this->app->bind(\Broadway\EventStore\EventStore::class, function ($app) { |
||
| 20 | $driver = $app['config']->get('broadway.event-store.driver'); |
||
| 21 | |||
| 22 | return $app[\Nwidart\LaravelBroadway\EventStore\EventStoreFactory::class]->make($driver)->getDriver(); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |