Helper to booleanize environment-or-config-values

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-26 10:27:55 +01:00
parent c3477a7eb2
commit 22a26268e0

View file

@ -1085,4 +1085,8 @@ class ConfigurationManager
default => $this->GetRegisteredSecret($placeholder),
};
}
private function booleanize(mixed $value) : bool {
return in_array($value, [true, 'true'], true);
}
}