diff options
author | Robin Appelman <robin@icewind.nl> | 2022-05-17 15:20:28 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-05-18 03:47:34 +0200 |
commit | 6d6662ec68c8e15c4c6bfdf1c694794badd412d7 (patch) | |
tree | be5fef3090aaadad183cf68b09694daf09c0e65b /lib/private/Files/View.php | |
parent | 83f831c26382c648d759384b8c14cac2edc67fa4 (diff) | |
download | nextcloud-server-6d6662ec68c8e15c4c6bfdf1c694794badd412d7.tar.gz nextcloud-server-6d6662ec68c8e15c4c6bfdf1c694794badd412d7.zip |
expose displayname cache trough a public interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 2b6732e2ba0..a555aeb24f1 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -49,9 +49,7 @@ namespace OC\Files; use Icewind\Streams\CallbackWrapper; use OC\Files\Mount\MoveableMount; use OC\Files\Storage\Storage; -use OC\User\DisplayNameCache; use OC\User\LazyUser; -use OC\User\User; use OCA\Files_Sharing\SharedMount; use OCP\Constants; use OCP\Files\Cache\ICacheEntry; @@ -103,8 +101,6 @@ class View { private LoggerInterface $logger; - private DisplayNameCache $displayNameCache; - /** * @param string $root * @throws \Exception If $root contains an invalid path @@ -121,7 +117,6 @@ class View { $this->lockingProvider = \OC::$server->getLockingProvider(); $this->lockingEnabled = !($this->lockingProvider instanceof \OC\Lock\NoopLockingProvider); $this->userManager = \OC::$server->getUserManager(); - $this->displayNameCache = \OC::$server->get(DisplayNameCache::class); $this->logger = \OC::$server->get(LoggerInterface::class); } @@ -1319,7 +1314,7 @@ class View { * @return IUser */ private function getUserObjectForOwner(string $ownerId) { - return new LazyUser($ownerId, $this->displayNameCache, $this->userManager); + return new LazyUser($ownerId, $this->userManager); } /** |