getDevice
This commit is contained in:
parent
610edc9584
commit
d39060e0a8
1 changed files with 2 additions and 2 deletions
|
@ -1451,9 +1451,9 @@ App::setResource('deviceForBuilds', function ($project) {
|
||||||
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
||||||
}, ['project']);
|
}, ['project']);
|
||||||
|
|
||||||
function getDevice(string $root, ?string $connection = null): Device
|
function getDevice(string $root, string $connection = ''): Device
|
||||||
{
|
{
|
||||||
$connection = empty($connection) ? System::getEnv('_APP_CONNECTIONS_STORAGE', '') : System::getEnv($connection, '');
|
$connection = !empty($connection) ? $connection : System::getEnv('_APP_CONNECTIONS_STORAGE', '');
|
||||||
|
|
||||||
if (!empty($connection)) {
|
if (!empty($connection)) {
|
||||||
$acl = 'private';
|
$acl = 'private';
|
||||||
|
|
Loading…
Reference in a new issue