getenv('TWIG_CACHE_DIR') ?: false, 'debug' => $this->isDebugMode(), 'strict_variables' => getenv('TWIG_STRICT') === 'true', ]; } public function getDatabaseSettings(): array { return [ 'host' => getenv('DB_HOST') ?: 'localhost', 'port' => getenv('DB_PORT') ?: 3306, 'dbname' => getenv('DB_DATABASE') ?: '', 'username' => getenv('DB_USER') ?: '', 'password' => getenv('DB_PASSWORD') ?: '', ]; } }