summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-20 16:34:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-20 16:34:22 +0100
commitafa88729558b8dd26413ff49ada8678b1b6521c6 (patch)
tree86e6c662bef91e633816f2d72dac5115770c92ec /lib/private/server.php
parenta45e45df1ec357f9b390463ed74100e6c8b07fe7 (diff)
parent8f06353882877c948e15e0340615cc7d25c44b83 (diff)
downloadnextcloud-server-afa88729558b8dd26413ff49ada8678b1b6521c6.tar.gz
nextcloud-server-afa88729558b8dd26413ff49ada8678b1b6521c6.zip
Merge pull request #14857 from owncloud/preview-provider-registration-in-manager
Preview provider registration in manager
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 4264c70905c..fd7a2bea2d1 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -45,8 +45,8 @@ class Server extends SimpleContainer implements IServerContainer {
$this->registerService('ContactsManager', function ($c) {
return new ContactsManager();
});
- $this->registerService('PreviewManager', function ($c) {
- return new PreviewManager();
+ $this->registerService('PreviewManager', function (Server $c) {
+ return new PreviewManager($c->getConfig());
});
$this->registerService('TagMapper', function(Server $c) {
return new TagMapper($c->getDatabaseConnection());