| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function registerServices(DiInterface $di) |
||
| 41 | { |
||
| 42 | // Registering a dispatcher |
||
| 43 | $di->set('dispatcher', function () { |
||
| 44 | $dispatcher = new Dispatcher(); |
||
| 45 | $dispatcher->setDefaultNamespace("Modules\Common\Controllers"); |
||
| 46 | return $dispatcher; |
||
| 47 | }); |
||
| 48 | |||
| 49 | // Setting up the view component |
||
| 50 | $view = $di->get('view'); |
||
| 51 | $view->setViewsDir( __DIR__ . '/views/'); |
||
| 52 | $di->set('view', $view); |
||
| 53 | } |
||
| 54 | } |