From f6fc19a55fc4b7961d0702158c48797c145f9f93 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sun, 24 Nov 2024 22:10:36 -0500 Subject: [PATCH] Format a little bit. --- app/src/Middlewares.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/Middlewares.php b/app/src/Middlewares.php index 7d27182..bb1575d 100644 --- a/app/src/Middlewares.php +++ b/app/src/Middlewares.php @@ -42,8 +42,10 @@ class Middlewares // Add the global variables $twig->getEnvironment()->addGlobal('site_name', $config->get('site.name')); $twig->getEnvironment()->addGlobal('site_description', $config->get('site.description')); + $flash = $container->get(SessionInterface::class)->getFlash(); $twig->getEnvironment()->addGlobal('flash', $flash); + $app->add(TwigMiddleware::create($app, $twig)); // Add the error handling middleware