diff --git a/app/src/Bootstrap.php b/app/src/Bootstrap.php index 2ff2ff2..7d49681 100644 --- a/app/src/Bootstrap.php +++ b/app/src/Bootstrap.php @@ -72,7 +72,7 @@ class Bootstrap $templatePath = __DIR__ . "/../templates"; $templateCache = false; $twig = Twig::create($templatePath, [ 'cache' => $templateCache ]); - $app->add(TwigMiddleware::create($app)); + $app->add(TwigMiddleware::create($app, $twig)); } /**