1 | <?php |
||
12 | class ErrorController implements InjectionAwareInterface |
||
13 | { |
||
14 | use InjectionAwareTrait; |
||
15 | |||
16 | |||
17 | |||
18 | /** |
||
19 | * Render an error page with a message and a status code. |
||
20 | * |
||
21 | * @param integer $status code to use for response. |
||
22 | * @param string $title to use for the page. |
||
23 | * @param string $message to display in the view. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function errorPage($status, $title, $message) |
||
35 | |||
36 | |||
37 | |||
38 | /** |
||
39 | * Render a 403 forbidden page using the default page renderer. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | public function page403() |
||
51 | |||
52 | |||
53 | |||
54 | /** |
||
55 | * Render a 404 Page not found using the default page renderer. |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | public function page404() |
||
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | * Render a 404 Page not found using the default page renderer. |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | public function page500() |
||
83 | } |
||
84 |