forked from nextcloud/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nextcloud#39889 from nextcloud/cache-di
- Loading branch information
Showing
12 changed files
with
142 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace OC\Files\Cache; | ||
|
||
use OC\SystemConfig; | ||
use OC\User\DisplayNameCache; | ||
use OCP\EventDispatcher\IEventDispatcher; | ||
use OCP\Files\IMimeTypeLoader; | ||
use OCP\FilesMetadata\IFilesMetadataManager; | ||
use OCP\IDBConnection; | ||
use Psr\Log\LoggerInterface; | ||
|
||
class CacheDependencies { | ||
public function __construct( | ||
private IMimeTypeLoader $mimeTypeLoader, | ||
private IDBConnection $connection, | ||
private IEventDispatcher $eventDispatcher, | ||
private QuerySearchHelper $querySearchHelper, | ||
private SystemConfig $systemConfig, | ||
private LoggerInterface $logger, | ||
private IFilesMetadataManager $metadataManager, | ||
private DisplayNameCache $displayNameCache, | ||
) { | ||
} | ||
|
||
public function getMimeTypeLoader(): IMimeTypeLoader { | ||
return $this->mimeTypeLoader; | ||
} | ||
|
||
public function getConnection(): IDBConnection { | ||
return $this->connection; | ||
} | ||
|
||
public function getEventDispatcher(): IEventDispatcher { | ||
return $this->eventDispatcher; | ||
} | ||
|
||
public function getQuerySearchHelper(): QuerySearchHelper { | ||
return $this->querySearchHelper; | ||
} | ||
|
||
public function getSystemConfig(): SystemConfig { | ||
return $this->systemConfig; | ||
} | ||
|
||
public function getLogger(): LoggerInterface { | ||
return $this->logger; | ||
} | ||
|
||
public function getDisplayNameCache(): DisplayNameCache { | ||
return $this->displayNameCache; | ||
} | ||
|
||
public function getMetadataManager(): IFilesMetadataManager { | ||
return $this->metadataManager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.