This repository was archived by the owner on May 29, 2026. It is now read-only.
chore: IConfig -> IAppConfig/IUserConfig (deprecation)#73
Merged
Conversation
…IUserConfig App-value calls: none found — ActionAuthService and SettingsService already use IAppConfig::getValueString/setValueString (modern API, no changes needed). User-value calls: 3 calls (getUserValue/setUserValue/deleteUserValue) in PreferencesController intentionally LEFT as IConfig — info.xml min-version=28, IUserConfig requires min-version>=31. Migrate when min-version is bumped to 31+. Pre-existing PHPCS errors fixed while touching affected files: - HealthController/MetricsController: missing named params in parent::__construct - ActionAuthService: missing named params on internal calls, redundant always-false type guards removed from setMatrix (PHPStan level-5 fix), blank-line-after-fn - InitializeActions: concat-spacing, inline-ternary (replaced with if/else), blank-line-after-fn PHPStan: OK (no errors). PHPCS: errors resolved (warnings are @SPEC tag placeholders across scaffold classes — tracked separately).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the pilot PR that defines the fleet migration pattern for deprecated
OCP\IConfigapp/user-value calls.App-value calls (0 migrated)
No
getAppValue/setAppValuecalls exist.ActionAuthServiceandSettingsServicealready use the modernIAppConfig::getValueString/setValueStringAPI — no migration needed.User-value calls (3 intentionally LEFT)
PreferencesController.phplines 80/123/129 useIConfig::getUserValue,setUserValue,deleteUserValue.Reason left:
appinfo/info.xmldeclares<nextcloud min-version="28"/>.OCP\IUserConfigrequires Nextcloud ≥ 31. These three calls must stay onIConfiguntilmin-versionis bumped to 31. A TODO comment pointing to this is the recommended fleet pattern.Migration target API (for when min-version reaches 31):
Pre-existing PHPCS/PHPStan errors fixed
Touched files had pre-existing quality gate failures — fixed per project policy:
HealthController/MetricsController: missing named params onparent::__constructActionAuthService: missing named params on internal method calls; redundant always-false type guards insetMatrixremoved (PHPStan level-5); blank-line-after-functionInitializeActions: concat operator spacing; inline ternary →if/else; blank-line-after-functionQuality results
php -l@spectag placeholders across scaffold classes — tracked separately)Fleet pattern
When fanning this out to other apps:
getAppValue/setAppValue→ replace withIAppConfig::getValueString/Int/Bool/Array(injectOCP\IAppConfig $appConfig)getUserValue/setUserValue/deleteUserValue→ checkmin-versionfirst; if ≥ 31 replace withIUserConfig::getValueString/setValueString/deleteUserValue(injectOCP\IUserConfig $userConfig); if < 31 leave with a TODO commentuse OCP\IConfigonly when no system-value calls remain