| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | private function initialize() |
||
| 56 | { |
||
| 57 | $handlers = $this |
||
| 58 | ->handlers |
||
| 59 | ->reduce( |
||
| 60 | new Map('string', 'callable'), |
||
| 61 | function(Map $carry, string $class, string $service): Map { |
||
| 62 | return $carry->put( |
||
| 63 | $class, |
||
| 64 | $this->container->get($service) |
||
| 65 | ); |
||
| 66 | } |
||
| 67 | ); |
||
| 68 | $this->bus = new CommandBus($handlers); |
||
| 69 | } |
||
| 70 | } |
||
| 71 |