| Conditions | 3 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function register(Container $pimple) |
||
| 34 | { |
||
| 35 | $pimple['events'] = function ($app) { |
||
| 36 | $dispatcher = new Dispatcher(); |
||
| 37 | |||
| 38 | foreach ($app->config->get('events.listen', []) as $event => $listeners) { |
||
| 39 | foreach ($listeners as $listener) { |
||
| 40 | $dispatcher->addListener($event, $listener); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | return $dispatcher; |
||
| 45 | }; |
||
| 48 |