summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-17 19:36:23 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-17 19:36:23 +0000
commit760f5fc5e550b6444ed156c600fee7673b330857 (patch)
tree4bc3a4d709396ec57ebbf62aa29964246f8474c8 /lib/private/server.php
parentebb834d879f10ea24b8cf032f6f0000076843195 (diff)
parent1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b (diff)
downloadnextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.tar.gz
nextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.zip
Merge pull request #14954 from owncloud/cache-image-path
Cache \OC\URLGenerator::imagePath
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 6261337e0b1..c55817bb6b3 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -147,7 +147,11 @@ class Server extends SimpleContainer implements IServerContainer {
});
$this->registerService('URLGenerator', function (Server $c) {
$config = $c->getConfig();
- return new \OC\URLGenerator($config);
+ $cacheFactory = $c->getMemCacheFactory();
+ return new \OC\URLGenerator(
+ $config,
+ $cacheFactory
+ );
});
$this->registerService('AppHelper', function ($c) {
return new \OC\AppHelper();