1
0

CacheDependencies.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Files\Cache;
  7. use OC\SystemConfig;
  8. use OC\User\DisplayNameCache;
  9. use OCP\EventDispatcher\IEventDispatcher;
  10. use OCP\Files\IMimeTypeLoader;
  11. use OCP\FilesMetadata\IFilesMetadataManager;
  12. use OCP\IDBConnection;
  13. use Psr\Log\LoggerInterface;
  14. class CacheDependencies {
  15. public function __construct(
  16. private IMimeTypeLoader $mimeTypeLoader,
  17. private IDBConnection $connection,
  18. private IEventDispatcher $eventDispatcher,
  19. private QuerySearchHelper $querySearchHelper,
  20. private SystemConfig $systemConfig,
  21. private LoggerInterface $logger,
  22. private IFilesMetadataManager $metadataManager,
  23. private DisplayNameCache $displayNameCache,
  24. ) {
  25. }
  26. public function getMimeTypeLoader(): IMimeTypeLoader {
  27. return $this->mimeTypeLoader;
  28. }
  29. public function getConnection(): IDBConnection {
  30. return $this->connection;
  31. }
  32. public function getEventDispatcher(): IEventDispatcher {
  33. return $this->eventDispatcher;
  34. }
  35. public function getQuerySearchHelper(): QuerySearchHelper {
  36. return $this->querySearchHelper;
  37. }
  38. public function getSystemConfig(): SystemConfig {
  39. return $this->systemConfig;
  40. }
  41. public function getLogger(): LoggerInterface {
  42. return $this->logger;
  43. }
  44. public function getDisplayNameCache(): DisplayNameCache {
  45. return $this->displayNameCache;
  46. }
  47. public function getMetadataManager(): IFilesMetadataManager {
  48. return $this->metadataManager;
  49. }
  50. }