diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-29 15:14:48 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:10:37 +0200 |
commit | 65f3b2fad235417d3f653c9e11aa8d72e8944d28 (patch) | |
tree | fa863ea6c687bd42343e001be6dc975325a91c75 /apps/files_sharing/appinfo/app.php | |
parent | 4a26219ecf3abe9c1b18d434b8e70a6f9878199c (diff) | |
download | nextcloud-server-65f3b2fad235417d3f653c9e11aa8d72e8944d28.tar.gz nextcloud-server-65f3b2fad235417d3f653c9e11aa8d72e8944d28.zip |
Add server<->server sharing backend
Diffstat (limited to 'apps/files_sharing/appinfo/app.php')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 6b40ba921cc..9ea969f4cf3 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -11,6 +11,15 @@ OC::$CLASSPATH['OC\Files\Cache\Shared_Watcher'] = 'files_sharing/lib/watcher.php OC::$CLASSPATH['OCA\Files\Share\Api'] = 'files_sharing/lib/api.php'; OC::$CLASSPATH['OCA\Files\Share\Maintainer'] = 'files_sharing/lib/maintainer.php'; OC::$CLASSPATH['OCA\Files\Share\Proxy'] = 'files_sharing/lib/proxy.php'; + +$externalManager = new \OCA\Files_Sharing\External\Manager( + \OC::$server->getDatabaseConnection(), + \OC\Files\Filesystem::getMountManager(), + \OC\Files\Filesystem::getLoader(), + \OC::$server->getUserSession() +); +$externalManager->setup(); + OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup'); OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); |