| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 9 | public function register(WritableInterface $container) |
|
| 23 | { |
||
| 24 | 9 | $config = $container->get(ProviderInterface::CONFIG); |
|
| 25 | |||
| 26 | 9 | $templates = __DIR__ . DIRECTORY_SEPARATOR . 'Templates'; |
|
| 27 | |||
| 28 | 9 | $config->set('app.views.sample', $templates); |
|
| 29 | |||
| 30 | 9 | $container->set(ProviderInterface::CONFIG, $config); |
|
| 31 | |||
| 32 | 9 | $router = new RouteCollection; |
|
| 33 | |||
| 34 | 9 | return $container->set(get_class($router), $router); |
|
| 35 | } |
||
| 37 |