diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-17 12:18:15 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-17 12:18:15 +0200 |
commit | b740d283a9334c1590572d6b4c5d2244c9bcc77a (patch) | |
tree | df45ae88f28d6b4c95f90823ccf7d2539373b348 /apps | |
parent | 3539bd1751a71488cc78a5f6de1b437da5afad82 (diff) | |
download | nextcloud-server-b740d283a9334c1590572d6b4c5d2244c9bcc77a.tar.gz nextcloud-server-b740d283a9334c1590572d6b4c5d2244c9bcc77a.zip |
Don't initialize Application directly
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/ShareBackend/File.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/ShareBackend/File.php b/apps/files_sharing/lib/ShareBackend/File.php index a15391162ff..a0d7e448be4 100644 --- a/apps/files_sharing/lib/ShareBackend/File.php +++ b/apps/files_sharing/lib/ShareBackend/File.php @@ -34,6 +34,7 @@ namespace OCA\Files_Sharing\ShareBackend; +use OCA\FederatedFileSharing\AppInfo\Application; use OCA\FederatedFileSharing\FederatedShareProvider; class File implements \OCP\Share_Backend_File_Dependent { @@ -54,7 +55,7 @@ class File implements \OCP\Share_Backend_File_Dependent { if ($federatedShareProvider) { $this->federatedShareProvider = $federatedShareProvider; } else { - $federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application(); + $federatedSharingApp = \OC::$server->query(Application::class); $this->federatedShareProvider = $federatedSharingApp->getFederatedShareProvider(); } } |