public function registerEncryptionModule() { $container = $this->getContainer(); $container->registerService('EncryptionModule', function (IAppContainer $c) { return new \OCA\Encryption\Crypto\Encryption($c->query('Crypt'), $c->query('KeyManager'), $c->query('Util')); }); $module = $container->query('EncryptionModule'); $this->encryptionManager->registerEncryptionModule($module); }
public function registerEncryptionModule() { $container = $this->getContainer(); $this->encryptionManager->registerEncryptionModule(Encryption::ID, Encryption::DISPLAY_NAME, function () use($container) { return new Encryption($container->query('Crypt'), $container->query('KeyManager'), $container->query('Util'), $container->query('Session'), $container->query('EncryptAll'), $container->query('DecryptAll'), $container->getServer()->getLogger(), $container->getServer()->getL10N($container->getAppName())); }); }