diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-22 22:09:09 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-22 22:35:02 +0100 |
commit | efe644137d1d2d8ad1e11fbf8cd3109a679d6fc1 (patch) | |
tree | f5dda5f2bedc112d5f1fdf1ad3b27425ff120ee2 /apps/encryption/appinfo | |
parent | 9a0428835f54550d27217f9a9b60d105c436c8b6 (diff) | |
download | nextcloud-server-efe644137d1d2d8ad1e11fbf8cd3109a679d6fc1.tar.gz nextcloud-server-efe644137d1d2d8ad1e11fbf8cd3109a679d6fc1.zip |
[encryption] Remove dependency fetching inside the constructor and move them to method call parameters
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/encryption/appinfo')
-rw-r--r-- | apps/encryption/appinfo/app.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/encryption/appinfo/app.php b/apps/encryption/appinfo/app.php index 1b5f18813c3..66127e5f975 100644 --- a/apps/encryption/appinfo/app.php +++ b/apps/encryption/appinfo/app.php @@ -27,12 +27,13 @@ namespace OCA\Encryption\AppInfo; \OCP\Util::addscript('encryption', 'encryption'); -$encryptionSystemReady = \OC::$server->getEncryptionManager()->isReady(); +$encryptionManager = \OC::$server->getEncryptionManager(); +$encryptionSystemReady = $encryptionManager->isReady(); /** @var Application $app */ $app = \OC::$server->query(Application::class); if ($encryptionSystemReady) { - $app->registerEncryptionModule(); - $app->registerHooks(); - $app->setUp(); + $app->registerEncryptionModule($encryptionManager); + $app->registerHooks(\OC::$server->getConfig()); + $app->setUp($encryptionManager); } |