Get rid of noise in docker logs for missing favicon from the app, reset documentation and try and figure out how to render templates globally

This commit is contained in:
Dave Smith-Hayes 2024-12-02 23:13:05 -05:00
parent 0567bdd897
commit f45c5a6551
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -19,6 +19,7 @@ class LogoutUserAction extends Controller
$this->session->delete('user');
}
$this->session->getFlash()->add('notice', "Successfully logged out.");
return $this->redirect('/', 302);
}
}

View File

@ -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;