aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share/IPublicShareTemplateFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Share/IPublicShareTemplateFactory.php')
-rw-r--r--lib/public/Share/IPublicShareTemplateFactory.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Share/IPublicShareTemplateFactory.php b/lib/public/Share/IPublicShareTemplateFactory.php
new file mode 100644
index 00000000000..1825c0c7dc6
--- /dev/null
+++ b/lib/public/Share/IPublicShareTemplateFactory.php
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\Share;
+
+/**
+ * @since 26.0.0
+ */
+interface IPublicShareTemplateFactory {
+ /**
+ * Returns a provider that is willing to respond for given share.
+ * @since 26.0.0
+ */
+ public function getProvider(IShare $share): IPublicShareTemplateProvider;
+}