mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
The identityproof manager should be in Server
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
8f833a309a
commit
bfb5ef4b29
2 changed files with 8 additions and 8 deletions
|
|
@ -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…
Reference in a new issue