summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/IdentityProof
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 09:44:28 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-10 09:45:11 +0200
commitca399406146d74f2f46f8b8815f0b3c165c996ab (patch)
tree2a1c5ffd705698c04f8cef433e64b4416690af18 /lib/private/Security/IdentityProof
parenta8bb4a18988534323d872b13a9895a2c9557b6c5 (diff)
downloadnextcloud-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/private/Security/IdentityProof')
-rw-r--r--lib/private/Security/IdentityProof/Manager.php7
1 files changed, 4 insertions, 3 deletions
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;
}