Implement Account model; small style changes; Twig debug setting
This commit is contained in:
parent
7859ef77ee
commit
32add30c9d
10 changed files with 263 additions and 56 deletions
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue