Format a little bit.
This commit is contained in:
parent
107e55175f
commit
f6fc19a55f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user