diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-14 16:48:39 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-17 10:31:33 +0200 |
commit | 7d4b1b52d08fd4bc8e9f65ca2ccc747de2fc429a (patch) | |
tree | c40489a85da1be3eb66041a2ca2719f38c0298f3 /lib/public | |
parent | f32d97750c33942db53a56d1deceacb2ed3e779b (diff) | |
download | nextcloud-server-7d4b1b52d08fd4bc8e9f65ca2ccc747de2fc429a.tar.gz nextcloud-server-7d4b1b52d08fd4bc8e9f65ca2ccc747de2fc429a.zip |
always create a new instance of the encryption module
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/encryption/imanager.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/public/encryption/imanager.php b/lib/public/encryption/imanager.php index badc91c9023..3a370710781 100644 --- a/lib/public/encryption/imanager.php +++ b/lib/public/encryption/imanager.php @@ -40,26 +40,28 @@ interface IManager { function isEnabled(); /** - * Registers an encryption module + * Registers an callback function which must return an encryption module instance * - * @param IEncryptionModule $module + * @param string $id + * @param string $displayName + * @param callable $callback * @throws ModuleAlreadyExistsException * @since 8.1.0 */ - function registerEncryptionModule(IEncryptionModule $module); + function registerEncryptionModule($id, $displayName, callable $callback); /** * Unregisters an encryption module * - * @param IEncryptionModule $module + * @param string $moduleId * @since 8.1.0 */ - function unregisterEncryptionModule(IEncryptionModule $module); + function unregisterEncryptionModule($moduleId); /** * get a list of all encryption modules * - * @return array + * @return array [id => ['id' => $id, 'displayName' => $displayName, 'callback' => callback]] * @since 8.1.0 */ function getEncryptionModules(); |