Implement Account model; small style changes; Twig debug setting

This commit is contained in:
Lexi / Zoe 2021-08-14 23:37:23 +02:00
parent 7859ef77ee
commit 32add30c9d
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
10 changed files with 263 additions and 56 deletions

View file

@ -10,10 +10,23 @@ class Settings
return getenv('APP_DEBUG') === 'true';
}
public function getTimezone(): string
{
return 'Europe/Berlin';
}
public function getDateFormat(): string
{
// Default date format (https://www.php.net/manual/en/datetime.format.php)
// RFC 2822 formatted date (Thu, 21 Dec 2000 16:01:07 +0200)
return 'r';
}
public function getTwigSettings(): array
{
return [
'cache' => getenv('TWIG_CACHE_DIR') ?: false,
'debug' => $this->isDebugMode(),
'strict_variables' => getenv('TWIG_STRICT') === 'true',
];
}