summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Bootstrap/IRegistrationContext.php')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index f75cdb18cfb..de391050ec1 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -36,6 +36,7 @@ use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Template\ICustomTemplateProvider;
use OCP\IContainer;
use OCP\Notification\INotifier;
+use OCP\Preview\IProviderV2;
/**
* The context object passed to IBootstrap::register
@@ -232,6 +233,18 @@ interface IRegistrationContext {
public function registerTwoFactorProvider(string $twoFactorProviderClass): void;
/**
+ * Register a preview provider
+ *
+ * It is allowed to register more than one provider per app.
+ *
+ * @param string $previewProviderClass
+ * @param string $mimeTypeRegex
+ * @psalm-param class-string<IProviderV2> $previewProviderClass
+ * @since 23.0.0
+ */
+ public function registerPreviewProvider(string $previewProviderClass, string $mimeTypeRegex): void;
+
+ /**
* Register a calendar provider
*
* @param string $class