@@ -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); |
@@ -111,6 +111,11 @@ |
||
111 | 111 | return $this->view->render($templatePath, $this->controllerResponse->getData()); |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @param string $template |
|
116 | + * @param string $type |
|
117 | + * @param string $controller |
|
118 | + */ |
|
114 | 119 | private function checkTemplateFile($template, $type, $controller) : void |
115 | 120 | { |
116 | 121 | if (!file_exists($this->config->app->get('templates_path') .'/'. $template)) { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Selami\View\ViewInterface; |
9 | 9 | use Selami\Router\Router; |
10 | 10 | use Selami\Stdlib\CaseConverter; |
11 | -use Zend\Diactoros\Response; |
|
12 | 11 | use Zend\Diactoros\Response\JsonResponse; |
13 | 12 | use Zend\Diactoros\Response\HtmlResponse; |
14 | 13 | use Zend\Diactoros\Response\TextResponse; |