eee
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ class Router
|
||||
$middlewares = MiddlewareManager::get($method->getClass(), $method->getMethod());
|
||||
$validator = MiddlewareManager::getValidator($method->getClass(), $method->getMethod());
|
||||
if (!is_null($validator)) {
|
||||
$middlewares = array_unshift($middlewares, new ValidatorMiddleware($method->getClass(), $method->getMethod()));
|
||||
array_unshift($middlewares, new ValidatorMiddleware($method->getClass(), $method->getMethod()));
|
||||
}
|
||||
$router->setHttpHandler($name, new HttpRequestHandler($middlewares, $method));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user