aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Services/AppConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppFramework/Services/AppConfig.php')
-rw-r--r--lib/private/AppFramework/Services/AppConfig.php9
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..04d97738483 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(bool $onlyEnabled = false): array {
+ return $this->appConfig->getAppInstalledVersions($onlyEnabled);
+ }
}