1
0

IVersionManager.php 661 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Versions\Versions;
  8. use OCP\Files\Storage\IStorage;
  9. /**
  10. * @since 15.0.0
  11. */
  12. interface IVersionManager extends IVersionBackend {
  13. /**
  14. * Register a new backend
  15. *
  16. * @param string $storageType
  17. * @param IVersionBackend $backend
  18. * @since 15.0.0
  19. */
  20. public function registerBackend(string $storageType, IVersionBackend $backend);
  21. /**
  22. * @throws BackendNotFoundException
  23. * @since 29.0.0
  24. */
  25. public function getBackendForStorage(IStorage $storage): IVersionBackend;
  26. }