@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * This method need at least 2 arguments: route pattern and callable. |
117 | 117 | * You can create midleware callables which will be executed before the route |
118 | - * @return type |
|
118 | + * @return Router |
|
119 | 119 | */ |
120 | 120 | public function post() { |
121 | 121 | return $this->url(Route::METHOD_POST, func_get_args()); |
@@ -198,6 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Method called when route cant be found |
201 | + * @param \Closure $callback |
|
201 | 202 | */ |
202 | 203 | public function notFound($callback) { |
203 | 204 | $this->errorHandler['notFound'] = $callback; |
@@ -62,6 +62,9 @@ |
||
62 | 62 | $this->reloadConfig(); |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $locale |
|
67 | + */ |
|
65 | 68 | public function setLocale($locale) { |
66 | 69 | $this->locale = $locale; |
67 | 70 | $folder = \Tight\Utils::addTrailingSlash($this->config->resourceFolder); |
@@ -224,7 +224,7 @@ |
||
224 | 224 | * registered for the route, each callable middleware is invoked in |
225 | 225 | * the order specified. |
226 | 226 | * |
227 | - * @return bool |
|
227 | + * @return string |
|
228 | 228 | */ |
229 | 229 | public function dispatch() { |
230 | 230 | $output = ""; |