From 9a30c5c54fa4154451e2392ee94f8049ed2668ee Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Thu, 6 Mar 2025 00:58:21 +0000 Subject: [PATCH] update --- hesabixCore/src/Command/UpdateSoftwareCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hesabixCore/src/Command/UpdateSoftwareCommand.php b/hesabixCore/src/Command/UpdateSoftwareCommand.php index 41d76a2..b247727 100644 --- a/hesabixCore/src/Command/UpdateSoftwareCommand.php +++ b/hesabixCore/src/Command/UpdateSoftwareCommand.php @@ -290,10 +290,10 @@ class UpdateSoftwareCommand extends Command private function backupDatabase(): string { $backupFile = $this->backupDir . '/db_backup_' . time() . '.sql'; - $dbUrl = getenv('DATABASE_URL'); + $dbUrl = $this->params->get('env(DATABASE_URL)'); // استفاده از ParameterBag با env() if (!$dbUrl) { - throw new \RuntimeException('DATABASE_URL environment variable is not set.'); + throw new \RuntimeException('DATABASE_URL is not set in the configuration.'); } $urlParts = parse_url($dbUrl);