feat: review comments
This commit is contained in:
parent
d830f5c262
commit
836ab62285
2 changed files with 4 additions and 4 deletions
|
@ -1108,7 +1108,7 @@ function getDevice($root): Device
|
|||
$connection = App::getEnv('_APP_CONNECTIONS_STORAGE', '');
|
||||
|
||||
$acl = 'private';
|
||||
$device = '';
|
||||
$device = STORAGE_DEVICE_LOCAL;
|
||||
$accessKey = '';
|
||||
$accessSecret = '';
|
||||
$bucket = '';
|
||||
|
@ -1123,7 +1123,7 @@ function getDevice($root): Device
|
|||
$region = $dsn->getParam('region');
|
||||
} catch (\Exception $e) {
|
||||
Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.');
|
||||
$device = 'Local';
|
||||
$device = STORAGE_DEVICE_LOCAL;
|
||||
}
|
||||
|
||||
switch ($device) {
|
||||
|
|
|
@ -280,7 +280,7 @@ abstract class Worker
|
|||
$connection = App::getEnv('_APP_CONNECTIONS_STORAGE', '');
|
||||
|
||||
$acl = 'private';
|
||||
$device = '';
|
||||
$device = STORAGE_DEVICE_LOCAL;
|
||||
$accessKey = '';
|
||||
$accessSecret = '';
|
||||
$bucket = '';
|
||||
|
@ -295,7 +295,7 @@ abstract class Worker
|
|||
$region = $dsn->getParam('region');
|
||||
} catch (\Exception $e) {
|
||||
Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.');
|
||||
$device = 'file';
|
||||
$device = STORAGE_DEVICE_LOCAL;
|
||||
}
|
||||
|
||||
switch ($device) {
|
||||
|
|
Loading…
Reference in a new issue