aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-06-05 22:28:48 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-06-05 22:28:48 +0200
commit6bf74216738b77d39b1bf6308c8ffff9d11f5f72 (patch)
tree75a4254a024b9497c35706858bbaf39ac510b373 /src
parent3f82b4cc301d27f6a256a76c744bbbbeb4baa5cb (diff)
downloadmicropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.tar.gz
micropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.tar.bz2
micropoly-6bf74216738b77d39b1bf6308c8ffff9d11f5f72.zip
Make it possible to not configure a twig cache path
Diffstat (limited to 'src')
-rw-r--r--src/Env.php2
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) {