Skip to content

Commit

Permalink
Refactor OC\Server::getEncryptionKeyStorage
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
  • Loading branch information
summersab authored and skjnldsv committed Mar 15, 2024
1 parent df1cd1b commit 6cc147c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Encryption/EncryptionWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use OC\Files\Storage\Wrapper\Encryption;
use OC\Files\View;
use OC\Memcache\ArrayCache;
use OCP\Encryption\Keys\IStorage;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage\IDisableEncryptionStorage;
use OCP\Files\Storage\IStorage;
Expand Down Expand Up @@ -82,7 +83,7 @@ public function wrapStorage(string $mountPoint, IStorage $storage, IMountPoint $
$mountManager = Filesystem::getMountManager();
$uid = $user ? $user->getUID() : null;
$fileHelper = \OC::$server->getEncryptionFilesHelper();
$keyStorage = \OC::$server->getEncryptionKeyStorage();
$keyStorage = \OC::$server->get(IStorage::class);

$util = new Util(
new View(),
Expand Down

0 comments on commit 6cc147c

Please sign in to comment.