diff --git a/app/src/Controller/Controller.php b/app/src/Controller/Controller.php index 7b61c2e..63b102f 100644 --- a/app/src/Controller/Controller.php +++ b/app/src/Controller/Controller.php @@ -34,7 +34,7 @@ abstract class Controller $this->routeContext = RouteContext::fromRequest($this->request); $this->view = Twig::fromRequest($request); - return $this->handle($request, $response); + return $this->handle(); } /** @@ -45,7 +45,7 @@ abstract class Controller abstract public function handle(): Response; /** - * Render the given Template. + * Render the given Template. * * @param string $templateName The name of the template * @param array $data The data for the template diff --git a/app/src/Controller/User/LogoutUserAction.php b/app/src/Controller/User/LogoutUserAction.php index b585192..ee0fd3c 100644 --- a/app/src/Controller/User/LogoutUserAction.php +++ b/app/src/Controller/User/LogoutUserAction.php @@ -19,6 +19,7 @@ class LogoutUserAction extends Controller $this->session->delete('user'); } + $this->session->getFlash()->add('notice', "Successfully logged out."); return $this->redirect('/', 302); } } diff --git a/dev/nginx/nginx.conf b/dev/nginx/nginx.conf index 60c7987..544a9c8 100644 --- a/dev/nginx/nginx.conf +++ b/dev/nginx/nginx.conf @@ -1,7 +1,7 @@ server { listen 80 default_server; listen [::]:80 default_server; - + server_name slovocast; root /var/www/slovocast/public; @@ -11,6 +11,10 @@ server { try_files $uri $uri/ /index.php?$args; } + location /favicon.ico { + return 500; + } + location ~* \.php$ { fastcgi_pass php:9000; include fastcgi_params;