mirror of
https://github.com/nextcloud/server.git
synced 2025-02-24 17:06:50 +00:00
43 lines
969 B
PHP
43 lines
969 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OC\Config\Lexicon;
|
|
|
|
use NCU\Config\Lexicon\ConfigLexiconEntry;
|
|
use NCU\Config\Lexicon\ConfigLexiconStrictness;
|
|
use NCU\Config\Lexicon\IConfigLexicon;
|
|
use NCU\Config\ValueType;
|
|
|
|
/**
|
|
* ConfigLexicon for 'core' app/user configs
|
|
*/
|
|
class CoreConfigLexicon implements IConfigLexicon {
|
|
public function getStrictness(): ConfigLexiconStrictness {
|
|
return ConfigLexiconStrictness::IGNORE;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
* @return ConfigLexiconEntry[]
|
|
*/
|
|
public function getAppConfigs(): array {
|
|
return [
|
|
new ConfigLexiconEntry('lastcron', ValueType::INT, 0, 'timestamp of last cron execution'),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
* @return ConfigLexiconEntry[]
|
|
*/
|
|
public function getUserConfigs(): array {
|
|
return [
|
|
new ConfigLexiconEntry('lang', ValueType::STRING, null, 'language'),
|
|
];
|
|
}
|
|
}
|