| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Nwidart\LaravelBroadway\Broadway; |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | $this->app->singleton(EventStreamDecoratorInterface::class, function () { |
||
| 23 | return new MetadataEnrichingEventStreamDecorator(); |
||
| 24 | }); |
||
| 25 | |||
| 26 | $this->app->singleton('laravelbroadway.enricher.registry', function ($app) { |
||
| 27 | return new MetaDataEnricherRegistry($app[EventStreamDecoratorInterface::class]); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |