mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 06:20:14 +00:00
Helper to booleanize environment-or-config-values
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
@@ -1085,4 +1085,8 @@ class ConfigurationManager
|
||||
default => $this->GetRegisteredSecret($placeholder),
|
||||
};
|
||||
}
|
||||
|
||||
private function booleanize(mixed $value) : bool {
|
||||
return in_array($value, [true, 'true'], true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user