diff --git a/app/src/Middlewares.php b/app/src/Middlewares.php index f07fe9c..9501d25 100644 --- a/app/src/Middlewares.php +++ b/app/src/Middlewares.php @@ -48,6 +48,7 @@ class Middlewares $flash = $container->get(SessionInterface::class)->getFlash(); $twig->getEnvironment()->addGlobal('flash', $flash); + $twig->getEnvironment()->addGlobal('session', $container->get(SessionInterface::class)); $app->add(TwigMiddleware::create($app, $twig)); diff --git a/app/templates/layouts/skeleton.twig b/app/templates/layouts/skeleton.twig index e521b04..a61c076 100644 --- a/app/templates/layouts/skeleton.twig +++ b/app/templates/layouts/skeleton.twig @@ -19,7 +19,7 @@