summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index ea5937dfea4..7f3e3af6994 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -297,10 +297,11 @@ class Server extends SimpleContainer implements IServerContainer {
});
$this->registerService('Router', function (Server $c) {
$cacheFactory = $c->getMemCacheFactory();
+ $logger = $c->getLogger();
if ($cacheFactory->isAvailable()) {
- $router = new \OC\Route\CachingRouter($cacheFactory->create('route'));
+ $router = new \OC\Route\CachingRouter($cacheFactory->create('route'), $logger);
} else {
- $router = new \OC\Route\Router();
+ $router = new \OC\Route\Router($logger);
}
return $router;
});