aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/IVersionManager.php
blob: ecd424d0cc1de58b26cd94fa311a152c334a194a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCA\Files_Versions\Versions;

use OCP\Files\Storage\IStorage;

/**
 * @since 15.0.0
 */
interface IVersionManager extends IVersionBackend {
	/**
	 * Register a new backend
	 *
	 * @param string $storageType
	 * @param IVersionBackend $backend
	 * @since 15.0.0
	 */
	public function registerBackend(string $storageType, IVersionBackend $backend);

	/**
	 * @throws BackendNotFoundException
	 * @since 29.0.0
	 */
	public function getBackendForStorage(IStorage $storage): IVersionBackend;
}