Skip to content

Commit f5c279a

Browse files
Merge pull request #57743 from nextcloud/backport/54082/stable31
[stable31] fix(userconfig): duplicate core lexicon
2 parents ea03a6e + 7afcbdc commit f5c279a

File tree

5 files changed

+5
-47
lines changed

5 files changed

+5
-47
lines changed

core/AppInfo/ConfigLexicon.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
class ConfigLexicon implements IConfigLexicon {
2222
public const UNIFIED_SEARCH_MIN_SEARCH_LENGTH = 'unified_search_min_search_length';
2323
public const UNIFIED_SEARCH_MAX_RESULTS_PER_REQUEST = 'unified_search_max_results_per_request';
24+
public const USER_LANGUAGE = 'lang';
25+
public const LASTCRON_TIMESTAMP = 'lastcron';
2426

2527
public function getStrictness(): ConfigLexiconStrictness {
2628
return ConfigLexiconStrictness::IGNORE;
@@ -30,11 +32,13 @@ public function getAppConfigs(): array {
3032
return [
3133
new ConfigLexiconEntry(self::UNIFIED_SEARCH_MIN_SEARCH_LENGTH, ValueType::INT, 1, 'Minimum search length to trigger the request', lazy: false),
3234
new ConfigLexiconEntry(self::UNIFIED_SEARCH_MAX_RESULTS_PER_REQUEST, ValueType::INT, 25, 'Maximum number of results returned per request', lazy: false),
35+
new ConfigLexiconEntry(self::LASTCRON_TIMESTAMP, ValueType::INT, 0, 'timestamp of last cron execution'),
3336
];
3437
}
3538

3639
public function getUserConfigs(): array {
3740
return [
41+
new ConfigLexiconEntry(self::USER_LANGUAGE, ValueType::STRING, null, 'language'),
3842
];
3943
}
4044
}

lib/composer/composer/autoload_classmap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,6 @@
11831183
'OC\\Comments\\Manager' => $baseDir . '/lib/private/Comments/Manager.php',
11841184
'OC\\Comments\\ManagerFactory' => $baseDir . '/lib/private/Comments/ManagerFactory.php',
11851185
'OC\\Config' => $baseDir . '/lib/private/Config.php',
1186-
'OC\\Config\\Lexicon\\CoreConfigLexicon' => $baseDir . '/lib/private/Config/Lexicon/CoreConfigLexicon.php',
11871186
'OC\\Config\\UserConfig' => $baseDir . '/lib/private/Config/UserConfig.php',
11881187
'OC\\Console\\Application' => $baseDir . '/lib/private/Console/Application.php',
11891188
'OC\\Console\\TimestampFormatter' => $baseDir . '/lib/private/Console/TimestampFormatter.php',

lib/composer/composer/autoload_static.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
12321232
'OC\\Comments\\Manager' => __DIR__ . '/../../..' . '/lib/private/Comments/Manager.php',
12331233
'OC\\Comments\\ManagerFactory' => __DIR__ . '/../../..' . '/lib/private/Comments/ManagerFactory.php',
12341234
'OC\\Config' => __DIR__ . '/../../..' . '/lib/private/Config.php',
1235-
'OC\\Config\\Lexicon\\CoreConfigLexicon' => __DIR__ . '/../../..' . '/lib/private/Config/Lexicon/CoreConfigLexicon.php',
12361235
'OC\\Config\\UserConfig' => __DIR__ . '/../../..' . '/lib/private/Config/UserConfig.php',
12371236
'OC\\Console\\Application' => __DIR__ . '/../../..' . '/lib/private/Console/Application.php',
12381237
'OC\\Console\\TimestampFormatter' => __DIR__ . '/../../..' . '/lib/private/Console/TimestampFormatter.php',

lib/private/AppFramework/Bootstrap/RegistrationContext.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use Closure;
1313
use NCU\Config\Lexicon\IConfigLexicon;
14-
use OC\Config\Lexicon\CoreConfigLexicon;
1514
use OC\Support\CrashReport\Registry;
1615
use OCP\AppFramework\App;
1716
use OCP\AppFramework\Bootstrap\IRegistrationContext;
@@ -144,7 +143,7 @@ class RegistrationContext {
144143
private array $declarativeSettings = [];
145144

146145
/** @var array<array-key, string> */
147-
private array $configLexiconClasses = ['core' => CoreConfigLexicon::class];
146+
private array $configLexiconClasses = [];
148147

149148
/** @var ServiceRegistration<ITeamResourceProvider>[] */
150149
private array $teamResourceProviders = [];

lib/private/Config/Lexicon/CoreConfigLexicon.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)