aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-23 16:14:19 +0100
committerJulius Härtl <jus@bitgrid.net>2020-11-24 08:01:39 +0100
commitd9708ebeceb31bd4d335a46b06b1344d5d56df3b (patch)
treedd3df165394d1c4e5727fab3a24f0a094faf4f5c /lib/private/Server.php
parenteddc31a07bdf8fdf82e320ad264e8e9cfdc574e9 (diff)
downloadnextcloud-server-d9708ebeceb31bd4d335a46b06b1344d5d56df3b.tar.gz
nextcloud-server-d9708ebeceb31bd4d335a46b06b1344d5d56df3b.zip
Add proper alias for internal router class
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 39524957166..b5b75aeb1fc 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -117,6 +117,7 @@ use OC\Preview\GeneratorHelper;
use OC\Remote\Api\ApiFactory;
use OC\Remote\InstanceFactory;
use OC\RichObjectStrings\Validator;
+use OC\Route\Router;
use OC\Security\Bruteforce\Throttler;
use OC\Security\CertificateManager;
use OC\Security\CredentialsManager;
@@ -759,7 +760,7 @@ class Server extends ServerContainer implements IServerContainer {
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('JobList', IJobList::class);
- $this->registerService(IRouter::class, function (Server $c) {
+ $this->registerService(Router::class, function (Server $c) {
$cacheFactory = $c->get(ICacheFactory::class);
$logger = $c->get(ILogger::class);
if ($cacheFactory->isLocalCacheAvailable()) {
@@ -769,6 +770,7 @@ class Server extends ServerContainer implements IServerContainer {
}
return $router;
});
+ $this->registerAlias(IRouter::class, Router::class);
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('Router', IRouter::class);