From e84cffc063d508f8984909ba3e744eff970ecb88 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 21 Mar 2015 20:12:55 +0100 Subject: Moved core apps to the capabilities manager * Files * Files_Sharing * Files_Trashbin * Files_Versions --- apps/files/lib/capabilities.php | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'apps/files/lib') 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 @@ - * @author Morris Jobke + * @author Roeland Jago Douma * @author Tom Needham * * @copyright Copyright (c) 2015, ownCloud, Inc. @@ -20,19 +20,28 @@ * along with this program. If not, see * */ - -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, + ], + ]; } - } -- cgit v1.2.3