aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-08-05 15:38:26 +0200
committerGitHub <noreply@github.com>2016-08-05 15:38:26 +0200
commit044da699fb0f3346b6d3228d530b1070fa095627 (patch)
tree31adda19cb56efee2c3235d90a2fccd813fccffc /apps/files_sharing/lib
parentdd44624540ee56dca6ba51be647b9572cef5fb5e (diff)
parentf37fa6e45c4357ce9849543fa91551a62f3828b8 (diff)
downloadnextcloud-server-044da699fb0f3346b6d3228d530b1070fa095627.tar.gz
nextcloud-server-044da699fb0f3346b6d3228d530b1070fa095627.zip
Merge pull request #747 from nextcloud/up_24941
Move Share backends to PSR-4 instead of using class path (#24941)
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/ShareBackend/File.php (renamed from apps/files_sharing/lib/share/file.php)4
-rw-r--r--apps/files_sharing/lib/ShareBackend/Folder.php (renamed from apps/files_sharing/lib/share/folder.php)4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/ShareBackend/File.php
index 370e755ec80..aecb63c60e4 100644
--- a/apps/files_sharing/lib/share/file.php
+++ b/apps/files_sharing/lib/ShareBackend/File.php
@@ -31,9 +31,11 @@
*
*/
+namespace OCA\Files_Sharing\ShareBackend;
+
use OCA\FederatedFileSharing\FederatedShareProvider;
-class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
+class File implements \OCP\Share_Backend_File_Dependent {
const FORMAT_SHARED_STORAGE = 0;
const FORMAT_GET_FOLDER_CONTENTS = 1;
diff --git a/apps/files_sharing/lib/share/folder.php b/apps/files_sharing/lib/ShareBackend/Folder.php
index e4d90274db1..4929bebf40b 100644
--- a/apps/files_sharing/lib/share/folder.php
+++ b/apps/files_sharing/lib/ShareBackend/Folder.php
@@ -25,7 +25,9 @@
*
*/
-class OC_Share_Backend_Folder extends OC_Share_Backend_File implements OCP\Share_Backend_Collection {
+namespace OCA\Files_Sharing\ShareBackend;
+
+class Folder extends File implements \OCP\Share_Backend_Collection {
/**
* get shared parents