| Conditions | 3 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function register(Container $pimple) |
||
| 23 | { |
||
| 24 | $pimple['events'] = function ($app) { |
||
| 25 | $dispatcher = new EventDispatcher(); |
||
| 26 | |||
| 27 | foreach ($app->config->get('events.listen', []) as $event => $listeners) { |
||
| 28 | foreach ($listeners as $listener) { |
||
| 29 | $dispatcher->addListener($event, $listener); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | return $dispatcher; |
||
| 34 | }; |
||
| 37 |