mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #52623 from nextcloud/feat/noid/get-value-type-from-lexicon
iAppConfig: getValueType() get data from lexicon if available
This commit is contained in:
commit
cd06b2432c
1 changed files with 8 additions and 0 deletions
|
|
@ -488,6 +488,14 @@ class AppConfig implements IAppConfig {
|
|||
* @see VALUE_ARRAY
|
||||
*/
|
||||
public function getValueType(string $app, string $key, ?bool $lazy = null): int {
|
||||
$type = self::VALUE_MIXED;
|
||||
$ignorable = $lazy ?? false;
|
||||
$this->matchAndApplyLexiconDefinition($app, $key, $ignorable, $type);
|
||||
if ($type !== self::VALUE_MIXED) {
|
||||
// a modified $type means config key is set in Lexicon
|
||||
return $type;
|
||||
}
|
||||
|
||||
$this->assertParams($app, $key);
|
||||
$this->loadConfig($app, $lazy);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue