debug: replace _APP_STORAGE_S3_ENDPOINT with _APP_CONNECTIONS_STORAGE

This commit is contained in:
Mustaque Ahmed
2025-09-26 16:25:57 +05:30
parent c0a841230c
commit bd65c135b4
+2 -2
View File
@@ -547,7 +547,7 @@ function getDevice(string $root, string $connection = ''): Device
$accessSecret = '';
$bucket = '';
$region = '';
$url = System::getEnv('_APP_STORAGE_S3_ENDPOINT', '');
$url = System::getEnv('_APP_CONNECTIONS_STORAGE', '');
Console::log("@@@debug-mustaq url {$url}");
try {
@@ -569,7 +569,7 @@ function getDevice(string $root, string $connection = ''): Device
return new S3($bucketRoot, $accessKey, $accessSecret, $url, $region, $acl);
} else {
Console::log("@@@debug-mustaq connection device AWS");
return new AWS($root, $accessKey, $accessSecret, $bucket, $region, $acl);
return new S3($root, $accessKey, $accessSecret, $bucket, $region, $acl);
}
// no break
case STORAGE::DEVICE_DO_SPACES: