fix default value for TWIG_CACHE_DIR
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
808681e87a
commit
73326d3b8c
1 changed files with 3 additions and 1 deletions
|
|
@ -7,8 +7,10 @@ class Settings
|
|||
{
|
||||
public function getTwigSettings(): array
|
||||
{
|
||||
$cacheDir = getenv('TWIG_CACHE_DIR');
|
||||
|
||||
return [
|
||||
'cache' => getenv('TWIG_CACHE_DIR') ?? false,
|
||||
'cache' => !empty($cacheDir) ? $cacheDir : false,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue