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;