diff options
Diffstat (limited to 'apps/files/appinfo/application.php')
-rw-r--r-- | apps/files/appinfo/application.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/files/appinfo/application.php b/apps/files/appinfo/application.php index c8aaf375d96..f121eb7a401 100644 --- a/apps/files/appinfo/application.php +++ b/apps/files/appinfo/application.php @@ -1,6 +1,5 @@ <?php /** - * @author Morris Jobke <hey@morrisjobke.de> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Tobias Kaminsky <tobias@kaminsky.me> * @author Vincent Petry <pvince81@owncloud.com> @@ -21,13 +20,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - -namespace OCA\Files\Appinfo; +namespace OCA\Files\AppInfo; use OCA\Files\Controller\ApiController; use OCP\AppFramework\App; use \OCA\Files\Service\TagService; use \OCP\IContainer; +use OCA\Files\Capabilities; class Application extends App { public function __construct(array $urlParams=array()) { @@ -68,5 +67,12 @@ class Application extends App { $homeFolder ); }); + + /* + * Register capabilities + */ + $server->getCapabilitiesManager()->registerCapability(function() { + return new Capabilities(); + }); } } |