summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-06 14:50:31 +0100
committerRobin Appelman <robin@icewind.nl>2017-02-08 15:17:03 +0100
commit976cff780b44c8fbe93d4fb588ff2c8fe36b1963 (patch)
treea42cda2c77ff9bc9effda63c5886f5dda8698fb2
parente7e614d801a84260821c7de0f3ae9ba57f733150 (diff)
downloadnextcloud-server-976cff780b44c8fbe93d4fb588ff2c8fe36b1963.tar.gz
nextcloud-server-976cff780b44c8fbe93d4fb588ff2c8fe36b1963.zip
register cloudidmanager for files_sharing
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index 456b966f28e..c8cf723630b 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -35,6 +35,7 @@ use OC\AppFramework\Utility\SimpleContainer;
use OCA\Files_Sharing\Controller\ExternalSharesController;
use OCA\Files_Sharing\Controller\ShareController;
use OCA\Files_Sharing\Middleware\SharingCheckMiddleware;
+use OCP\Federation\ICloudIdManager;
use \OCP\IContainer;
use OCP\IServerContainer;
@@ -84,6 +85,9 @@ class Application extends App {
$container->registerService('HttpClientService', function (SimpleContainer $c) use ($server) {
return $server->getHTTPClientService();
});
+ $container->registerService(ICloudIdManager::class, function (SimpleContainer $c) use ($server) {
+ return $server->getCloudIdManager();
+ });
$container->registerService('ExternalManager', function (SimpleContainer $c) use ($server) {
$user = $server->getUserSession()->getUser();
$uid = $user ? $user->getUID() : null;