diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-27 13:51:20 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-11-27 14:29:06 +0100 |
commit | b05c8faba8dd13a3110b0bbbdd02a9c60424a3c9 (patch) | |
tree | eb315644863653b75208883d8741b92d4dbf5fef /lib/private/server.php | |
parent | 8fe878afe9af165b98470a75203df2f1b32cb68f (diff) | |
download | nextcloud-server-b05c8faba8dd13a3110b0bbbdd02a9c60424a3c9.tar.gz nextcloud-server-b05c8faba8dd13a3110b0bbbdd02a9c60424a3c9.zip |
Dont die when we're missing a route
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 5 |
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; }); |