aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-13 16:23:59 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-14 16:34:43 +0200
commit7e281a07bb66a082a35cbdd52f7d1e418beb4f53 (patch)
tree9a2ab162c879eec9ede9087d2869a490c3988a49 /apps/files_sharing
parent2c87ce60a04eb98533d430ef7abe386ef0d04c2a (diff)
downloadnextcloud-server-7e281a07bb66a082a35cbdd52f7d1e418beb4f53.tar.gz
nextcloud-server-7e281a07bb66a082a35cbdd52f7d1e418beb4f53.zip
Use IBootstrap for the app federatedfilesharing
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/ShareBackend/File.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/ShareBackend/File.php b/apps/files_sharing/lib/ShareBackend/File.php
index 60deebc5c01..cdda89cbc63 100644
--- a/apps/files_sharing/lib/ShareBackend/File.php
+++ b/apps/files_sharing/lib/ShareBackend/File.php
@@ -34,7 +34,6 @@
namespace OCA\Files_Sharing\ShareBackend;
-use OCA\FederatedFileSharing\AppInfo\Application;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCP\Share\IShare;
@@ -56,8 +55,7 @@ class File implements \OCP\Share_Backend_File_Dependent {
if ($federatedShareProvider) {
$this->federatedShareProvider = $federatedShareProvider;
} else {
- $federatedSharingApp = \OC::$server->query(Application::class);
- $this->federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
+ $this->federatedShareProvider = \OC::$server->query(FederatedShareProvider::class);
}
}