From a346405ea60ea2d370405b7079d164ed3a6fc5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 18 Apr 2023 23:21:06 +0200 Subject: [PATCH] add error view 500 to app config --- web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web.php b/web.php index a9cb13e..64d46f7 100644 --- a/web.php +++ b/web.php @@ -108,11 +108,13 @@ $appConfig = [ 'antiCsrfTokenErrorResponse' => ['error' => 'no_valid_anti_csrf_token'], 'antiCsrfTokenExceptions' => ['/oauth/token'], 'loginRouteId' => 'login', - 'error404View' => 'error/404' + 'error404View' => 'error/404', + 'error500View' => 'error/500' ]; $httpReponse = new HttpResponse( Container::$request, + Container::$dbConnection, Container::$routeCollection, $appConfig, $_SERVER['REQUEST_METHOD'],