aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-12 22:46:32 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-08-13 05:43:38 +0200
commit894640206e98007f9c2387929960dabcb04f0df4 (patch)
tree023518d34efb8d14bbbbbdc1ae496047c2cf2763
parent2f2252cfbaca3e8d72eb32d0becd16c2926cc80f (diff)
downloadnextcloud-server-894640206e98007f9c2387929960dabcb04f0df4.tar.gz
nextcloud-server-894640206e98007f9c2387929960dabcb04f0df4.zip
Use registerDeprecatedAlias for non-namespaced aliases
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r--lib/private/Server.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 0aba31d35a9..6190765e998 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -344,7 +344,7 @@ class Server extends ServerContainer implements IServerContainer {
return new Encryption\Keys\Storage($view, $util);
});
- $this->registerAlias('TagMapper', TagMapper::class);
+ $this->registerDeprecatedAlias('TagMapper', TagMapper::class);
$this->registerAlias(\OCP\ITagManager::class, TagManager::class);
$this->registerDeprecatedAlias('TagManager', \OCP\ITagManager::class);
@@ -871,7 +871,7 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerDeprecatedAlias('MountConfigManager', IMountProviderCollection::class);
- $this->registerAlias('IniWrapper', IniGetWrapper::class);
+ $this->registerDeprecatedAlias('IniWrapper', IniGetWrapper::class);
$this->registerService('AsyncCommandBus', function (Server $c) {
$busClass = $c->getConfig()->getSystemValue('commandbus');
if ($busClass) {
@@ -888,7 +888,7 @@ class Server extends ServerContainer implements IServerContainer {
}
});
$this->registerAlias(IBus::class, 'AsyncCommandBus');
- $this->registerAlias('TrustedDomainHelper', TrustedDomainHelper::class);
+ $this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
$this->registerDeprecatedAlias('Throttler', Throttler::class);
$this->registerService('IntegrityCodeChecker', function (Server $c) {
// IConfig and IAppManager requires a working database. This code