aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-14 15:56:07 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-16 13:13:05 +0100
commit6995223b1ed202c7f8e920e83cb5b53efd7ce761 (patch)
tree76e839b9c3de3b4751a993f24f35f0cb93c0dbbd /lib/public/AppFramework/Bootstrap/IRegistrationContext.php
parentd37034f1612279b07c78284771ac73fbd5a2a407 (diff)
downloadnextcloud-server-6995223b1ed202c7f8e920e83cb5b53efd7ce761.tar.gz
nextcloud-server-6995223b1ed202c7f8e920e83cb5b53efd7ce761.zip
Add well known handlers API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/AppFramework/Bootstrap/IRegistrationContext.php')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index aaf5ef00bfa..9966d19965a 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -180,4 +180,18 @@ interface IRegistrationContext {
* @since 21.0.0
*/
public function registerInitialStateProvider(string $class): void;
+
+ /**
+ * Register a well known protocol handler
+ *
+ * It is allowed to register more than one handler per app.
+ *
+ * @param string $class
+ * @psalm-param class-string<\OCP\Http\WellKnown\IHandler> $class
+ *
+ * @return void
+ *
+ * @since 21.0.0
+ */
+ public function registerWellKnownHandler(string $class): void;
}