diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-25 16:18:51 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-25 16:20:21 +0100 |
commit | c7037d7b38d794ad49c93cbc1dfb8721898bd191 (patch) | |
tree | 8ccfb151eb0a6d6b52a42f20ae0ebcbcbc75864f /lib/private/AppFramework/Services/AppConfig.php | |
parent | 1ae3e8e77dfe6b70c76d430ad06bb49bd8d0e069 (diff) | |
download | nextcloud-server-fix/add-getappversions-replacement.tar.gz nextcloud-server-fix/add-getappversions-replacement.zip |
fix: Move getAppInstalledVersions to AppConfig so that it can be used earlierfix/add-getappversions-replacement
Call it from OC_App to make sure there is only one request to DB.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/AppFramework/Services/AppConfig.php')
-rw-r--r-- | lib/private/AppFramework/Services/AppConfig.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Services/AppConfig.php b/lib/private/AppFramework/Services/AppConfig.php index 423a9eb5814..77c5ea4de0c 100644 --- a/lib/private/AppFramework/Services/AppConfig.php +++ b/lib/private/AppFramework/Services/AppConfig.php @@ -337,4 +337,13 @@ class AppConfig implements IAppConfig { public function deleteUserValue(string $userId, string $key): void { $this->config->deleteUserValue($userId, $this->appName, $key); } + + /** + * Returns the installed versions of all apps + * + * @return array<string, string> + */ + public function getAppInstalledVersions(): array { + return $this->appConfig->getAppInstalledVersions(); + } } |