diff options
Diffstat (limited to 'lib/Service/ConfigService.php')
-rw-r--r-- | lib/Service/ConfigService.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index c6808f8d..0672f7b0 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -251,6 +251,30 @@ class ConfigService { $this->config->setAppValue('core', $key, $value); } + /** + * @param string $key + * + * @return string + */ + public function getCoreValue(string $key): string { + return $this->config->getAppValue('core', $key, ''); + } + + /** + * @param string $key + */ + public function unsetCoreValue(string $key) { + $this->config->deleteAppValue('core', $key); + } + + + /** + * + */ + public function unsetAppConfig() { + $this->config->deleteAppValues(Application::APP_NAME); + } + /** * @param $key |