@@ -95,6 +95,10 @@ discard block |
||
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param integer $status |
|
100 | + * @param string $message |
|
101 | + */ |
|
98 | 102 | private function notFound($status, $message) : void |
99 | 103 | { |
100 | 104 | $errorHandlerClass = $this->container->get('http-error-handler'); |
@@ -128,6 +132,9 @@ discard block |
||
128 | 132 | } |
129 | 133 | } |
130 | 134 | |
135 | + /** |
|
136 | + * @param string $controllerClass |
|
137 | + */ |
|
131 | 138 | private function runRoute($controllerClass, int $returnType, array $args) : void |
132 | 139 | { |
133 | 140 | $controller = new ApplicationController($this->container, $controllerClass, $returnType, $args); |
@@ -117,6 +117,11 @@ |
||
117 | 117 | return $this->view->render($templatePath, $this->controllerResponse->getData()); |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $template |
|
122 | + * @param string $type |
|
123 | + * @param string $controller |
|
124 | + */ |
|
120 | 125 | private function checkTemplateFile($template, $type, $controller) : void |
121 | 126 | { |
122 | 127 | if (!file_exists($this->config->view->get('templates_path') .'/'. $template)) { |