diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-12-18 13:34:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 13:34:04 +0100 |
commit | f37e150d1caa0918e3258011f3c9b04ce469bb7c (patch) | |
tree | 24eca361971f6ea7e3c586927105da40c8ef8c44 /lib/public/AppFramework/Bootstrap | |
parent | fbf25e164d1d508b4e587ebd454f18382d1917ba (diff) | |
parent | 6995223b1ed202c7f8e920e83cb5b53efd7ce761 (diff) | |
download | nextcloud-server-f37e150d1caa0918e3258011f3c9b04ce469bb7c.tar.gz nextcloud-server-f37e150d1caa0918e3258011f3c9b04ce469bb7c.zip |
Merge pull request #24702 from nextcloud/enhancement/well-known-handler-api
Add well known handlers API
Diffstat (limited to 'lib/public/AppFramework/Bootstrap')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index d388e072557..002db267293 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -181,4 +181,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; } |