CacheDependencies.php 1.4 KB

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