diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:03:04 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:03:04 +0100 |
commit | ee2617d88c17165dd3a4862f2a5b98a434435430 (patch) | |
tree | ba8c045a7b82e81ae4554a3d29e71694258bf2ef /lib/private | |
parent | 6e29b8731e25526442d9b878a5a6ae75afc4075e (diff) | |
download | nextcloud-server-ee2617d88c17165dd3a4862f2a5b98a434435430.tar.gz nextcloud-server-ee2617d88c17165dd3a4862f2a5b98a434435430.zip |
Simple IAppConfig deprecations
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/AllConfig.php | 6 | ||||
-rw-r--r-- | lib/private/AppConfig.php | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index f74a2f943d5..07ba8335ee4 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -152,7 +152,7 @@ class AllConfig implements \OCP\IConfig { * @return string[] the keys stored for the app */ public function getAppKeys($appName) { - return \OC::$server->getAppConfig()->getKeys($appName); + \OC::$server->query(\OC\AppConfig::class)->getKeys($appName); } /** @@ -185,7 +185,7 @@ class AllConfig implements \OCP\IConfig { * @param string $key the key of the value, under which it was saved */ public function deleteAppValue($appName, $key) { - \OC::$server->getAppConfig()->deleteKey($appName, $key); + \OC::$server->query(\OC\AppConfig::class)->deleteKey($appName, $key); } /** @@ -194,7 +194,7 @@ class AllConfig implements \OCP\IConfig { * @param string $appName the appName the configs are stored under */ public function deleteAppValues($appName) { - \OC::$server->getAppConfig()->deleteApp($appName); + \OC::$server->query(\OC\AppConfig::class)->deleteApp($appName); } diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 4e102522550..df95938a20e 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -101,7 +101,6 @@ class AppConfig implements IAppConfig { * * @param string $app the app we are looking for * @return array an array of key names - * @deprecated 8.0.0 use method getAppKeys of \OCP\IConfig * * This function gets all keys of an app. Please note that the values are * not returned. @@ -220,7 +219,6 @@ class AppConfig implements IAppConfig { * @param string $app app * @param string $key key * @return boolean - * @deprecated 8.0.0 use method deleteAppValue of \OCP\IConfig */ public function deleteKey($app, $key) { $this->loadConfigValues(); @@ -242,7 +240,6 @@ class AppConfig implements IAppConfig { * * @param string $app app * @return boolean - * @deprecated 8.0.0 use method deleteAppValue of \OCP\IConfig * * Removes all keys in appconfig belonging to the app. */ |