mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Helper to booleanize environment-or-config-values
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
c3477a7eb2
commit
22a26268e0
1 changed files with 4 additions and 0 deletions
|
|
@ -1085,4 +1085,8 @@ class ConfigurationManager
|
|||
default => $this->GetRegisteredSecret($placeholder),
|
||||
};
|
||||
}
|
||||
|
||||
private function booleanize(mixed $value) : bool {
|
||||
return in_array($value, [true, 'true'], true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue