summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ConfigService.php18
-rw-r--r--lib/Service/InstanceService.php2
-rw-r--r--lib/Service/MiscService.php2
-rw-r--r--lib/Service/SignatureService.php2
4 files changed, 12 insertions, 12 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);
}
diff --git a/lib/Service/InstanceService.php b/lib/Service/InstanceService.php
index 4c756253..72daf3f9 100644
--- a/lib/Service/InstanceService.php
+++ b/lib/Service/InstanceService.php
@@ -62,7 +62,7 @@ class InstanceService {
public function createLocal(): Instance {
$instance = new Instance();
$instance->setLocal(true)
- ->setVersion($this->config->getAppValue(Application::APP_NAME, 'installed_version', '0.0'))
+ ->setVersion($this->config->getAppValue(Application::APP_ID, 'installed_version', '0.0'))
->setApprovalRequired(false)
->setDescription($this->config->getAppValue('theming', 'slogan', 'a safe home for your data'))
->setTitle($this->config->getAppValue('theming', 'name', 'Nextcloud Social'));
diff --git a/lib/Service/MiscService.php b/lib/Service/MiscService.php
index a7abbc7a..121db528 100644
--- a/lib/Service/MiscService.php
+++ b/lib/Service/MiscService.php
@@ -58,7 +58,7 @@ class MiscService {
*/
public function log(string $message, $level = 2) {
$data = array(
- 'app' => Application::APP_NAME,
+ 'app' => Application::APP_ID,
'level' => $level
);
diff --git a/lib/Service/SignatureService.php b/lib/Service/SignatureService.php
index dbe3261a..d95a9ffa 100644
--- a/lib/Service/SignatureService.php
+++ b/lib/Service/SignatureService.php
@@ -581,7 +581,7 @@ class SignatureService {
private static function getContextCacheFolder(): ISimpleFolder {
$path = 'context';
- $appData = Server::get(IAppDataFactory::class)->get(Application::APP_NAME);
+ $appData = Server::get(IAppDataFactory::class)->get(Application::APP_ID);
try {
$folder = $appData->getFolder($path);
} catch (NotFoundException $e) {