diff --git a/loction_server/siro/connect.php b/loction_server/siro/connect.php index e889777..fb2c884 100755 --- a/loction_server/siro/connect.php +++ b/loction_server/siro/connect.php @@ -1,6 +1,13 @@ 'failure', 'message' => 'Vendor autoload missing in location server. Please run composer install.']); + exit; +} require_once __DIR__ . '/load_env.php'; $env_file = file_exists(__DIR__ . '/../loction-keys/.env') diff --git a/payment_server/v2/main/connect.php b/payment_server/v2/main/connect.php index b5874c9..3d333f3 100755 --- a/payment_server/v2/main/connect.php +++ b/payment_server/v2/main/connect.php @@ -9,6 +9,10 @@ $autoload = __DIR__ . '/../vendor/autoload.php'; if (file_exists($autoload)) { require_once $autoload; +} else { + http_response_code(500); + echo json_encode(['status' => 'failure', 'message' => 'Vendor autoload missing. Please run composer install.']); + exit; } // 2. لا حاجة لتحميل .env يدوياً: Docker يحقن المتغيّرات عبر env_file