diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-06-05 22:28:48 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-06-05 22:28:48 +0200 |
commit | 6bf74216738b77d39b1bf6308c8ffff9d11f5f72 (patch) | |
tree | 75a4254a024b9497c35706858bbaf39ac510b373 /src/Env.php | |
parent | 3f82b4cc301d27f6a256a76c744bbbbeb4baa5cb (diff) | |
download | micropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.tar.gz micropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.tar.bz2 micropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.zip |
Make it possible to not configure a twig cache path
Diffstat (limited to 'src/Env.php')
-rw-r--r-- | src/Env.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |