From 8321503a0beaa4121dd9eed3318a729280685059 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Wed, 22 May 2024 20:41:44 -0400 Subject: [PATCH] Fix the Twig bootstrap, get the first test running successfully. --- app/src/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**