summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-11-24 08:43:29 +0100
committerGitHub <noreply@github.com>2020-11-24 08:43:29 +0100
commit8ac9767881afb186f2713532eabb014ade0f1b2f (patch)
treee594c3f126346b2a6d5420abf68ca7054f3d66a4 /lib
parentb3191edcdac6782087bb4658ddccdfb7583bfb99 (diff)
parentd9708ebeceb31bd4d335a46b06b1344d5d56df3b (diff)
downloadnextcloud-server-8ac9767881afb186f2713532eabb014ade0f1b2f.tar.gz
nextcloud-server-8ac9767881afb186f2713532eabb014ade0f1b2f.zip
Merge pull request #24312 from nextcloud/bugfix/noid/fix-router-alias
Add proper alias for internal router class
Diffstat (limited to 'lib')
-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 a9877bd3337..73a8360f9b9 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);