summaryrefslogtreecommitdiffstats
path: root/lib/public/Share
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-03 15:51:58 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-09 13:20:23 +0100
commitfdea545415f63c9b3dba8af9badb698f4d23e670 (patch)
treef13c9720192ad112ba295efa8e4a948d4d0eda41 /lib/public/Share
parentf3184238407d30a95dfb69ab5e68ec68a2d4d3e6 (diff)
downloadnextcloud-server-fdea545415f63c9b3dba8af9badb698f4d23e670.tar.gz
nextcloud-server-fdea545415f63c9b3dba8af9badb698f4d23e670.zip
Allow apps to register their share providers from outside
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Share')
-rw-r--r--lib/public/Share/IManager.php6
-rw-r--r--lib/public/Share/IProviderFactory.php6
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index cc2ec45cc9f..635ccc1483d 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -417,6 +417,12 @@ interface IManager {
public function shareProviderExists($shareType);
/**
+ * @param string $shareProviderClass
+ * @since 21.0.0
+ */
+ public function registerShareProvider(string $shareProviderClass): void;
+
+ /**
* @Internal
*
* Get all the shares as iterable to reduce memory overhead
diff --git a/lib/public/Share/IProviderFactory.php b/lib/public/Share/IProviderFactory.php
index 27218497e53..480837404f0 100644
--- a/lib/public/Share/IProviderFactory.php
+++ b/lib/public/Share/IProviderFactory.php
@@ -53,4 +53,10 @@ interface IProviderFactory {
* @since 11.0.0
*/
public function getAllProviders();
+
+ /**
+ * @since 21.0.0
+ * @param string $shareProvier
+ */
+ public function registerProvider(string $shareProvier): void;
}