| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function run() { |
||
| 25 | $app = Application::app(); |
||
| 26 | $app->setPage($this->code); |
||
| 27 | $app->view = new View($this->code, ['exception' => $this]); |
||
| 28 | $controller = ControllerFactory::create(static::$controller, '_' . $this->code); |
||
|
|
|||
| 29 | |||
| 30 | if (get_class($controller) !== get_class($app->controller)) { |
||
| 31 | $app->controller = $controller; |
||
| 32 | } |
||
| 33 | //var_dump('response error: ' . $this->code); |
||
| 34 | http_response_code($this->code); |
||
| 35 | $this->retry(); |
||
| 36 | } |
||
| 59 |