The Encryption manager belongs in Server.php

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/12185/head
Roeland Jago Douma 8 years ago
parent 9c28d2d7c4
commit fbd0d0bdcf
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      lib/private/AppFramework/DependencyInjection/DIContainer.php
  2. 3
      lib/private/Server.php

@ -148,10 +148,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $c->getServer()->getThemingDefaults();
});
$this->registerService(IManager::class, function ($c) {
return $this->getServer()->getEncryptionManager();
});
$this->registerService(IConfig::class, function ($c) {
return $c->query(OC\GlobalScale\Config::class);
});

@ -217,7 +217,7 @@ class Server extends ServerContainer implements IServerContainer {
);
});
$this->registerService('EncryptionManager', function (Server $c) {
$this->registerService(\OCP\Encryption\IManager::class, function (Server $c) {
$view = new View();
$util = new Encryption\Util(
$view,
@ -234,6 +234,7 @@ class Server extends ServerContainer implements IServerContainer {
new ArrayCache()
);
});
$this->registerAlias('EncryptionManager', \OCP\Encryption\IManager::class);
$this->registerService('EncryptionFileHelper', function (Server $c) {
$util = new Encryption\Util(

Loading…
Cancel
Save