From 6bf74216738b77d39b1bf6308c8ffff9d11f5f72 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 5 Jun 2020 22:28:48 +0200 Subject: Make it possible to not configure a twig cache path --- src/Env.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Env.php b/src/Env.php index 38d9279..9e6ba51 100644 --- a/src/Env.php +++ b/src/Env.php @@ -39,7 +39,7 @@ class Env return $this->lazy("twig", function () { $loader = new FilesystemLoader($this->config["templates_path"]); $env = new Environment($loader, [ - "cache" => $this->config["templates_cache"], + "cache" => $this->config["templates_cache"] ?? false, ]); $env->addFunction(new TwigFunction("url", function (string $url, ...$args) { -- cgit v1.2.3-70-g09d2