diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-22 13:04:56 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-10 10:45:16 +0200 |
commit | f0b617b50825566ec1b417eed09688e88de5f0bb (patch) | |
tree | d7d009ba3d197dd78ff16e83543bba991dbe250f /apps/files_sharing | |
parent | c80c9819dcc1a4c79b5c2621a3ec07623e1cd140 (diff) | |
download | nextcloud-server-f0b617b50825566ec1b417eed09688e88de5f0bb.tar.gz nextcloud-server-f0b617b50825566ec1b417eed09688e88de5f0bb.zip |
Use DI
* Register OCP\Capability\IManager at DIContainer
* Add register capabilities to appframework
* Register capabilities in DI way
* Make unit test pass again
* Remove CapabiltiesManager from OCP
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/appinfo/application.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files_sharing/appinfo/application.php b/apps/files_sharing/appinfo/application.php index 6ddd25acb52..2fe9019d54e 100644 --- a/apps/files_sharing/appinfo/application.php +++ b/apps/files_sharing/appinfo/application.php @@ -128,11 +128,7 @@ class Application extends App { /* * Register capabilities */ - $server->getCapabilitiesManager()->registerCapability(function() use ($server) { - return new Capabilities( - $server->getConfig() - ); - }); + $container->registerCapability('OCA\Files_Sharing\Capabilities'); } public function registerMountProviders() { |