diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-22 14:04:56 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-10 11:45:16 +0300 |
commit | f0b617b50825566ec1b417eed09688e88de5f0bb (patch) | |
tree | d7d009ba3d197dd78ff16e83543bba991dbe250f /apps/files_versions | |
parent | c80c9819dcc1a4c79b5c2621a3ec07623e1cd140 (diff) |
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')
-rw-r--r-- | apps/files_versions/appinfo/application.php | 5 |
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'); } } |