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.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/private/AppFramework/Services/AppConfig.php b/lib/private/AppFramework/Services/AppConfig.php
index e47bbc429d0..04d97738483 100644
--- a/lib/private/AppFramework/Services/AppConfig.php
+++ b/lib/private/AppFramework/Services/AppConfig.php
@@ -116,7 +116,7 @@ class AppConfig implements IAppConfig {
string $key,
string $value,
bool $lazy = false,
- bool $sensitive = false
+ bool $sensitive = false,
): bool {
return $this->appConfig->setValueString($this->appName, $key, $value, $lazy, $sensitive);
}
@@ -138,7 +138,7 @@ class AppConfig implements IAppConfig {
string $key,
int $value,
bool $lazy = false,
- bool $sensitive = false
+ bool $sensitive = false,
): bool {
return $this->appConfig->setValueInt($this->appName, $key, $value, $lazy, $sensitive);
}
@@ -160,7 +160,7 @@ class AppConfig implements IAppConfig {
string $key,
float $value,
bool $lazy = false,
- bool $sensitive = false
+ bool $sensitive = false,
): bool {
return $this->appConfig->setValueFloat($this->appName, $key, $value, $lazy, $sensitive);
}
@@ -180,7 +180,7 @@ class AppConfig implements IAppConfig {
public function setAppValueBool(
string $key,
bool $value,
- bool $lazy = false
+ bool $lazy = false,
): bool {
return $this->appConfig->setValueBool($this->appName, $key, $value, $lazy);
}
@@ -203,7 +203,7 @@ class AppConfig implements IAppConfig {
string $key,
array $value,
bool $lazy = false,
- bool $sensitive = false
+ bool $sensitive = false,
): bool {
return $this->appConfig->setValueArray($this->appName, $key, $value, $lazy, $sensitive);
}
@@ -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);
+ }
}