diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 09:44:28 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-10 09:45:11 +0200 |
commit | ca399406146d74f2f46f8b8815f0b3c165c996ab (patch) | |
tree | 2a1c5ffd705698c04f8cef433e64b4416690af18 /lib | |
parent | a8bb4a18988534323d872b13a9895a2c9557b6c5 (diff) | |
download | nextcloud-server-ca399406146d74f2f46f8b8815f0b3c165c996ab.tar.gz nextcloud-server-ca399406146d74f2f46f8b8815f0b3c165c996ab.zip |
Automatic creation of Identity manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 2 | ||||
-rw-r--r-- | lib/private/Security/IdentityProof/Manager.php | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 04747485c13..d24836228cc 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -165,7 +165,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { $this->registerService(\OC\Security\IdentityProof\Manager::class, function ($c) { return new \OC\Security\IdentityProof\Manager( - $this->getServer()->getAppDataDir('identityproof'), + $this->getServer()->query(\OC\Files\AppData\Factory::class), $this->getServer()->getCrypto() ); }); diff --git a/lib/private/Security/IdentityProof/Manager.php b/lib/private/Security/IdentityProof/Manager.php index d2a9e57e338..73edac5f747 100644 --- a/lib/private/Security/IdentityProof/Manager.php +++ b/lib/private/Security/IdentityProof/Manager.php @@ -21,6 +21,7 @@ namespace OC\Security\IdentityProof; +use OC\Files\AppData\Factory; use OCP\Files\IAppData; use OCP\IUser; use OCP\Security\ICrypto; @@ -32,12 +33,12 @@ class Manager { private $crypto; /** - * @param IAppData $appData + * @param Factory $appDataFactory * @param ICrypto $crypto */ - public function __construct(IAppData $appData, + public function __construct(Factory $appDataFactory, ICrypto $crypto) { - $this->appData = $appData; + $this->appData = $appDataFactory->get('identityproof'); $this->crypto = $crypto; } |