From b69b29e54a15bc6a6a1d3ef6974497fd03b9c27c Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 9 Dec 2024 14:29:03 +0000 Subject: [PATCH] Use the Odan session start middleware --- app/src/Middlewares.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/Middlewares.php b/app/src/Middlewares.php index 979ee5e..4499cc6 100644 --- a/app/src/Middlewares.php +++ b/app/src/Middlewares.php @@ -3,7 +3,7 @@ namespace Slovocast; use League\Config\Configuration; -use Odan\Session\FlashInterface; +use Odan\Session\Middleware\SessionStartMiddleware; use Odan\Session\SessionInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; @@ -11,7 +11,6 @@ use Psr\Container\NotFoundExceptionInterface; use Slim\App; use Slim\Views\Twig; use Slim\Views\TwigMiddleware; -use Slovocast\Middleware\SessionMiddleware; use Twig\Error\LoaderError; class Middlewares @@ -34,7 +33,7 @@ class Middlewares /** * Global session start */ - $app->add(SessionMiddleware::class); + $app->add(SessionStartMiddleware::class); // Twig $templateCache = false;