| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function initRouter() |
||
| 44 | { |
||
| 45 | $router = $this->loadRouter(Configuration::projectDir() . $this->config['router']); |
||
| 46 | |||
| 47 | if (!$router instanceof Router) { |
||
| 48 | throw new \UnexpectedValueException("Failed to get router from '{$this->config['router']}'"); |
||
| 49 | } |
||
| 50 | |||
| 51 | $this->router = $router; |
||
| 52 | } |
||
| 53 | |||
| 94 |