App::abort(404) if route not found
This commit is contained in:
@ -105,7 +105,8 @@ class FrontController
|
||||
$request = \Majestic\Env::getRequestUri(true);
|
||||
$route = $this->getRouter()->route($request);
|
||||
if (!$route) {
|
||||
throw new \Majestic\Exception\Error404Exception('Route for "' . $request . '" not found');
|
||||
$message = 'Route for "' . $request . '" not found';
|
||||
\App::abort(404, $message);
|
||||
}
|
||||
|
||||
$action_class = $route->getAction();
|
||||
|
Reference in New Issue
Block a user