diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-21 20:12:55 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-10 10:45:16 +0200 |
commit | e84cffc063d508f8984909ba3e744eff970ecb88 (patch) | |
tree | 07bc4621077f256e3cb28748edab533791201a08 /apps/files/lib | |
parent | 7e6a2b71fd80fedabc64d10bee5ba0edc0b19cf0 (diff) | |
download | nextcloud-server-e84cffc063d508f8984909ba3e744eff970ecb88.tar.gz nextcloud-server-e84cffc063d508f8984909ba3e744eff970ecb88.zip |
Moved core apps to the capabilities manager
* Files
* Files_Sharing
* Files_Trashbin
* Files_Versions
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/capabilities.php | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/apps/files/lib/capabilities.php b/apps/files/lib/capabilities.php index 05d12864dca..2e19283e4d6 100644 --- a/apps/files/lib/capabilities.php +++ b/apps/files/lib/capabilities.php @@ -1,7 +1,7 @@ <?php /** * @author Christopher Schäpers <kondou@ts.unde.re> - * @author Morris Jobke <hey@morrisjobke.de> + * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Tom Needham <tom@owncloud.com> * * @copyright Copyright (c) 2015, ownCloud, Inc. @@ -20,19 +20,28 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - -namespace OCA\Files; -class Capabilities { - - public static function getCapabilities() { - return new \OC_OCS_Result(array( - 'capabilities' => array( - 'files' => array( - 'bigfilechunking' => true, - ), - ), - )); +namespace OCA\Files; + +use OCP\Capabilities\ICapability; + +/** + * Class Capabilities + * + * @package OCA\Files + */ +class Capabilities implements ICapability { + + /** + * Return this classes capabilities + * + * @return array + */ + public function getCapabilities() { + return [ + 'files' => [ + 'bigfilechunking' => true, + ], + ]; } - } |