summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-04 16:39:01 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-04 16:39:01 +0200
commit770d12d1915dad746d75ba0b23235b75cbe7d1a2 (patch)
tree40bea2270cbd8b01ee71ff61ee5244b84cd331a5 /lib/private/Server.php
parent3c62767873c4bf5d0770bf3af2129f50cbdcfe2f (diff)
downloadnextcloud-server-770d12d1915dad746d75ba0b23235b75cbe7d1a2.tar.gz
nextcloud-server-770d12d1915dad746d75ba0b23235b75cbe7d1a2.zip
Add missing alias for OCP\Settings\IManager and deprecate the old one
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index abb085d0745..2f28e303593 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1226,15 +1226,8 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias(\OCP\Collaboration\Resources\IProviderManager::class, \OC\Collaboration\Resources\ProviderManager::class);
$this->registerAlias(\OCP\Collaboration\Resources\IManager::class, \OC\Collaboration\Resources\Manager::class);
- $this->registerService('SettingsManager', function (Server $c) {
- $manager = new \OC\Settings\Manager(
- $c->getLogger(),
- $c->getL10NFactory(),
- $c->getURLGenerator(),
- $c
- );
- return $manager;
- });
+ $this->registerDeprecatedAlias('SettingsManager', \OC\Settings\Manager::class);
+ $this->registerAlias(\OCP\Settings\IManager::class, \OC\Settings\Manager::class);
$this->registerService(\OC\Files\AppData\Factory::class, function (Server $c) {
return new \OC\Files\AppData\Factory(
$c->getRootFolder(),
@@ -2198,7 +2191,7 @@ class Server extends ServerContainer implements IServerContainer {
* @deprecated
*/
public function getSettingsManager() {
- return $this->query('SettingsManager');
+ return $this->query(\OC\Settings\Manager::class);
}
/**