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/appinfo | |
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/appinfo')
-rw-r--r-- | apps/files/appinfo/application.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files/appinfo/application.php b/apps/files/appinfo/application.php index f121eb7a401..6ba77e09556 100644 --- a/apps/files/appinfo/application.php +++ b/apps/files/appinfo/application.php @@ -26,7 +26,6 @@ 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()) { @@ -71,8 +70,6 @@ class Application extends App { /* * Register capabilities */ - $server->getCapabilitiesManager()->registerCapability(function() { - return new Capabilities(); - }); + $container->registerCapability('OCA\Files\Capabilities'); } } |