From 362cb2a11f7a95762ecfc7662768442bca233018 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 14 Jun 2021 16:17:43 +0200 Subject: inject SearchBuilder Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Wrapper/CacheWrapper.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/private/Files/Cache/Wrapper/CacheWrapper.php') diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index e25282942b2..8b8b4b6af80 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -49,12 +49,7 @@ class CacheWrapper extends Cache { $this->cache = $cache; $this->mimetypeLoader = \OC::$server->getMimeTypeLoader(); $this->connection = \OC::$server->getDatabaseConnection(); - $this->querySearchHelper = new QuerySearchHelper( - $this->mimetypeLoader, - $this->connection, - \OC::$server->getSystemConfig(), - \OC::$server->getLogger() - ); + $this->querySearchHelper = \OC::$server->get(QuerySearchHelper::class); } protected function getCache() { -- cgit v1.2.3