Skip to content

Commit

Permalink
Refactor OC\Server::getEncryptionFilesHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
summersab committed Aug 29, 2023
1 parent 613cd16 commit a052703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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\IFile;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -79,7 +80,7 @@ public function wrapStorage($mountPoint, Storage $storage, IMountPoint $mount) {
$user = \OC::$server->getUserSession()->getUser();
$mountManager = Filesystem::getMountManager();
$uid = $user ? $user->getUID() : null;
$fileHelper = \OC::$server->getEncryptionFilesHelper();
$fileHelper = \OC::$server->get(IFile::class);
$keyStorage = \OC::$server->getEncryptionKeyStorage();

$util = new Util(
Expand Down
3 changes: 2 additions & 1 deletion lib/private/Encryption/HookManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use OC\Files\Filesystem;
use OC\Files\View;
use OC\Files\SetupManager;
use OCP\Encryption\IFile;
use Psr\Log\LoggerInterface;

class HookManager {
Expand Down Expand Up @@ -79,7 +80,7 @@ private static function getUpdate(?string $owner = null): Update {
\OC::$server->getConfig()),
Filesystem::getMountManager(),
\OC::$server->getEncryptionManager(),
\OC::$server->getEncryptionFilesHelper(),
\OC::$server->get(IFile::class),
\OC::$server->get(LoggerInterface::class),
$uid
);
Expand Down

0 comments on commit a052703

Please sign in to comment.