diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-01 12:49:41 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-05 14:13:41 +0200 |
commit | f37fa6e45c4357ce9849543fa91551a62f3828b8 (patch) | |
tree | 0d2c79bc1d252d43770e839248c6d9b8bc312489 /apps/files_sharing/lib | |
parent | 84e6b8d9d05f7e481276090101ddf77f1ab3cfdf (diff) | |
download | nextcloud-server-f37fa6e45c4357ce9849543fa91551a62f3828b8.tar.gz nextcloud-server-f37fa6e45c4357ce9849543fa91551a62f3828b8.zip |
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 |