diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-15 09:54:50 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-06 14:53:43 +0100 |
commit | 38d3a638ed2ec055ddf4a09da682961b6976bc4d (patch) | |
tree | 0ddc1acf2fc1734fab0b44cfcfbf47c59de26463 /apps/files_sharing/api/ocssharewrapper.php | |
parent | b15be8f96fb875ab1834c15b9de80b10147e8863 (diff) | |
download | nextcloud-server-38d3a638ed2ec055ddf4a09da682961b6976bc4d.tar.gz nextcloud-server-38d3a638ed2ec055ddf4a09da682961b6976bc4d.zip |
[Share 2.0] Enable share creation via OCS API
Diffstat (limited to 'apps/files_sharing/api/ocssharewrapper.php')
-rw-r--r-- | apps/files_sharing/api/ocssharewrapper.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_sharing/api/ocssharewrapper.php b/apps/files_sharing/api/ocssharewrapper.php index ca04c656c28..2896f3fbf01 100644 --- a/apps/files_sharing/api/ocssharewrapper.php +++ b/apps/files_sharing/api/ocssharewrapper.php @@ -29,13 +29,17 @@ class OCSShareWrapper { return new Share20OCS( new \OC\Share20\Manager( \OC::$server->getLogger(), - \OC::$server->getAppConfig(), + \OC::$server->getConfig(), new \OC\Share20\DefaultShareProvider( \OC::$server->getDatabaseConnection(), \OC::$server->getUserManager(), \OC::$server->getGroupManager(), \OC::$server->getRootFolder() - ) + ), + \OC::$server->getSecureRandom(), + \OC::$server->getHasher(), + \OC::$server->getMountManager(), + \OC::$server->getGroupManager() ), \OC::$server->getGroupManager(), \OC::$server->getUserManager(), @@ -49,8 +53,8 @@ class OCSShareWrapper { return \OCA\Files_Sharing\API\Local::getAllShares($params); } - public function createShare($params) { - return \OCA\Files_Sharing\API\Local::createShare($params); + public function createShare() { + return $this->getShare20OCS()->createShare(); } public function getShare($params) { |