| @@ 17-24 (lines=8) @@ | ||
| 14 | } |
|
| 15 | } |
|
| 16 | ||
| 17 | public function error404() |
|
| 18 | { |
|
| 19 | $this->redirect()->responseCode('404'); |
|
| 20 | ||
| 21 | return $this->twig('errors/404.html.twig', [ |
|
| 22 | 'title' => '404 Page Not Found :: ' . $this->data('title'), |
|
| 23 | ]); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function error503() |
|
| 27 | { |
|
| @@ 26-33 (lines=8) @@ | ||
| 23 | ]); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function error503() |
|
| 27 | { |
|
| 28 | $this->redirect()->responseCode('503'); |
|
| 29 | ||
| 30 | return $this->twig('errors/503.html.twig', [ |
|
| 31 | 'title' => '503 Service Unavailable :: ' . $this->data('title'), |
|
| 32 | ]); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function error500() |
|
| 36 | { |
|
| @@ 35-42 (lines=8) @@ | ||
| 32 | ]); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function error500() |
|
| 36 | { |
|
| 37 | $this->redirect()->responseCode('503'); |
|
| 38 | ||
| 39 | return $this->twig('errors/503.html.twig', [ |
|
| 40 | 'title' => '503 Service Unavailable :: ' . $this->data('title'), |
|
| 41 | ]); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param null $target |
|