summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-22 13:04:56 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-10 10:45:16 +0200
commitf0b617b50825566ec1b417eed09688e88de5f0bb (patch)
treed7d009ba3d197dd78ff16e83543bba991dbe250f /apps/files_versions/appinfo
parentc80c9819dcc1a4c79b5c2621a3ec07623e1cd140 (diff)
downloadnextcloud-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_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/application.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_versions/appinfo/application.php b/apps/files_versions/appinfo/application.php
index 69485bc1f22..bab36b48510 100644
--- a/apps/files_versions/appinfo/application.php
+++ b/apps/files_versions/appinfo/application.php
@@ -22,7 +22,6 @@
namespace OCA\Files_Versions\AppInfo;
use OCP\AppFramework\App;
-use OCA\Files_Versions\Capabilities;
class Application extends App {
public function __construct(array $urlParams = array()) {
@@ -33,8 +32,6 @@ class Application extends App {
/*
* Register capabilities
*/
- $server->getCapabilitiesManager()->registerCapability(function() {
- return new Capabilities();
- });
+ $container->registerCapability('OCA\Files_Versions\Capabilities');
}
}