summaryrefslogtreecommitdiffstats
path: root/lib/Service/ConfigService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/ConfigService.php')
-rw-r--r--lib/Service/ConfigService.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php
index 033990b7..ae84aed5 100644
--- a/lib/Service/ConfigService.php
+++ b/lib/Service/ConfigService.php
@@ -132,7 +132,7 @@ class ConfigService {
$defaultValue = $this->defaults[$key];
}
- return $this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
+ return $this->config->getAppValue(Application::APP_ID, $key, $defaultValue);
}
/**
@@ -148,7 +148,7 @@ class ConfigService {
$defaultValue = $this->defaults[$key];
}
- return (int)$this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
+ return (int)$this->config->getAppValue(Application::APP_ID, $key, $defaultValue);
}
/**
@@ -160,7 +160,7 @@ class ConfigService {
* @return void
*/
public function setAppValue($key, $value) {
- $this->config->setAppValue(Application::APP_NAME, $key, $value);
+ $this->config->setAppValue(Application::APP_ID, $key, $value);
}
/**
@@ -171,7 +171,7 @@ class ConfigService {
* @return string
*/
public function deleteAppValue($key) {
- return $this->config->deleteAppValue(Application::APP_NAME, $key);
+ return $this->config->deleteAppValue(Application::APP_ID, $key);
}
/**
@@ -190,7 +190,7 @@ class ConfigService {
$defaultValue = '';
if ($app === '') {
- $app = Application::APP_NAME;
+ $app = Application::APP_ID;
if (array_key_exists($key, $this->defaults)) {
$defaultValue = $this->defaults[$key];
}
@@ -209,7 +209,7 @@ class ConfigService {
* @throws PreConditionNotMetException
*/
public function setUserValue($key, $value) {
- return $this->config->setUserValue($this->userId, Application::APP_NAME, $key, $value);
+ return $this->config->setUserValue($this->userId, Application::APP_ID, $key, $value);
}
/**
@@ -221,7 +221,7 @@ class ConfigService {
* @return string
*/
public function getValueForUser($userId, $key) {
- return $this->config->getUserValue($userId, Application::APP_NAME, $key);
+ return $this->config->getUserValue($userId, Application::APP_ID, $key);
}
/**
@@ -235,7 +235,7 @@ class ConfigService {
* @throws PreConditionNotMetException
*/
public function setValueForUser($userId, $key, $value) {
- return $this->config->setUserValue($userId, Application::APP_NAME, $key, $value);
+ return $this->config->setUserValue($userId, Application::APP_ID, $key, $value);
}
@@ -268,7 +268,7 @@ class ConfigService {
*
*/
public function unsetAppConfig() {
- $this->config->deleteAppValues(Application::APP_NAME);
+ $this->config->deleteAppValues(Application::APP_ID);
}