diff --git a/app/Infrastructure/Config/Config.php b/app/Infrastructure/Config/Config.php index f61728d..20689e1 100644 --- a/app/Infrastructure/Config/Config.php +++ b/app/Infrastructure/Config/Config.php @@ -11,4 +11,21 @@ class Config $dotenv = Dotenv::createImmutable(__DIR__ . '/../../../'); $dotenv->load(); } + + public static function getDatabaseConfig(): array + { + return [ + 'database_type' => getenv('DB_TYPE'), + 'database_name' => getenv('DB_NAME'), + 'server' => getenv('DB_HOST'), + 'username' => getenv('DB_USER'), + 'password' => getenv('DB_PASS'), + 'port' => getenv('DB_PORT') + ]; + } + + public static function getLogLevel(): string + { + return getenv('LOG_LEVEL') ?: 'info'; + } } \ No newline at end of file