The identityproof manager should be in Server

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

@ -152,14 +152,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $c->query(OC\GlobalScale\Config::class);
});
$this->registerService(\OC\Security\IdentityProof\Manager::class, function ($c) {
return new \OC\Security\IdentityProof\Manager(
$this->getServer()->query(\OC\Files\AppData\Factory::class),
$this->getServer()->getCrypto(),
$this->getServer()->getConfig()
);
});
$this->registerService('Protocol', function($c){
/** @var \OC\Server $server */
$server = $c->query('ServerContainer');

@ -1191,6 +1191,14 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias(IDashboardManager::class, DashboardManager::class);
$this->registerAlias(IFullTextSearchManager::class, FullTextSearchManager::class);
$this->registerService(\OC\Security\IdentityProof\Manager::class, function (Server $c) {
return new \OC\Security\IdentityProof\Manager(
$c->query(\OC\Files\AppData\Factory::class),
$c->getCrypto(),
$c->getConfig()
);
});
$this->connectDispatcher();
}

Loading…
Cancel
Save