summaryrefslogtreecommitdiffstats
path: root/lib/private/share20/iproviderfactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/share20/iproviderfactory.php')
-rw-r--r--lib/private/share20/iproviderfactory.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/private/share20/iproviderfactory.php b/lib/private/share20/iproviderfactory.php
index 0bbd304e6b8..9dabe2f6134 100644
--- a/lib/private/share20/iproviderfactory.php
+++ b/lib/private/share20/iproviderfactory.php
@@ -20,6 +20,8 @@
*/
namespace OC\Share20;
+use OC\Share20\Exception\ProviderException;
+
/**
* Interface IProviderFactory
*
@@ -29,10 +31,16 @@ namespace OC\Share20;
interface IProviderFactory {
/**
- * Creates and returns the shareProviders
- *
- * @return IShareProvider[]
- * @since 9.0.0
+ * @param string $id
+ * @return IShareProvider
+ * @throws ProviderException
+ */
+ public function getProvider($id);
+
+ /**
+ * @param int $shareType
+ * @return IShareProvider
+ * @throws ProviderException
*/
- public function getProviders();
+ public function getProviderForType($shareType);
}