Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-14 17:56:07 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-16 15:13:05 +0300
commit6995223b1ed202c7f8e920e83cb5b53efd7ce761 (patch)
tree76e839b9c3de3b4751a993f24f35f0cb93c0dbbd /lib/public/AppFramework
parentd37034f1612279b07c78284771ac73fbd5a2a407 (diff)
Add well known handlers API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/AppFramework')
-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;
}