diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-18 21:02:58 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-07-18 21:02:58 -0100 |
commit | 749865a6208b2f693818e400ae10d4e9c759a51f (patch) | |
tree | a0be8a8e1130cabe8bf8984c4bcbc98886901b22 /lib/Service/ConfigService.php | |
parent | c5e8f587ccc0e418148fa0db2b385872be160f0b (diff) |
./occ social:reset --uninstall
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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 |