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/appinfo | |
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/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 2df7f099838..11c4614d6c5 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -28,14 +28,12 @@ $l = \OC::$server->getL10N('files_sharing'); -\OC::$CLASSPATH['OC_Share_Backend_File'] = 'files_sharing/lib/share/file.php'; -\OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'files_sharing/lib/share/folder.php'; \OC::$CLASSPATH['OC\Files\Storage\Shared'] = 'files_sharing/lib/sharedstorage.php'; \OCA\Files_Sharing\Helper::registerHooks(); -\OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); -\OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); +\OCP\Share::registerBackend('file', 'OCA\Files_Sharing\ShareBackend\File'); +\OCP\Share::registerBackend('folder', 'OCA\Files_Sharing\ShareBackend\Folder', 'file'); $application = new \OCA\Files_Sharing\AppInfo\Application(); $application->registerMountProviders(); |