Format a little bit.

This commit is contained in:
Dave Smith-Hayes 2024-11-24 22:10:36 -05:00
parent 107e55175f
commit f6fc19a55f

View File

@ -42,8 +42,10 @@ class Middlewares
// Add the global variables // Add the global variables
$twig->getEnvironment()->addGlobal('site_name', $config->get('site.name')); $twig->getEnvironment()->addGlobal('site_name', $config->get('site.name'));
$twig->getEnvironment()->addGlobal('site_description', $config->get('site.description')); $twig->getEnvironment()->addGlobal('site_description', $config->get('site.description'));
$flash = $container->get(SessionInterface::class)->getFlash(); $flash = $container->get(SessionInterface::class)->getFlash();
$twig->getEnvironment()->addGlobal('flash', $flash); $twig->getEnvironment()->addGlobal('flash', $flash);
$app->add(TwigMiddleware::create($app, $twig)); $app->add(TwigMiddleware::create($app, $twig));
// Add the error handling middleware // Add the error handling middleware