Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
24 | public function register() |
||
25 | { |
||
26 | $this->app->bind(CommandTranslator::class, SimpleCommandTranslator::class); |
||
27 | |||
28 | $this->app->singleton( |
||
29 | CommandBus::class, |
||
30 | function (Application $application) { |
||
31 | $simpleCommandBus = new SimpleCommandBus( |
||
32 | $application->make(CommandTranslator::class), |
||
33 | $application->make(LaravelCommandBusHandlerResolver::class) |
||
34 | ); |
||
35 | |||
36 | return new StrongConsistencyCommandBus($simpleCommandBus); |
||
37 | } |
||
38 | ); |
||
39 | } |
||
40 | } |
||
41 |