The identityproof manager should be in Server

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-11-01 10:54:32 +01:00
parent 8f833a309a
commit bfb5ef4b29
No known key found for this signature in database
GPG key ID: F941078878347C0C
2 changed files with 8 additions and 8 deletions

View file

@ -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');

View file

@ -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();
}