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:
authorMorris Jobke <hey@morrisjobke.de>2020-07-20 15:20:03 +0300
committerGitHub <noreply@github.com>2020-07-20 15:20:03 +0300
commit9ae75a3ca9785a0400f81854b906c1e5ecb48edb (patch)
tree0d64dfb3d89a755af101e1b17e1973e05061d49c /lib/public/AppFramework
parent84ca5863d7e124acfb75e0a9d505ab25f713b590 (diff)
parent0dfcc132caaeda7553c06b7a146641c69c41111d (diff)
Merge pull request #21850 from nextcloud/techdebt/noid/register-alternative-logins
Allow to register AlternativeLogin on RegistrationContext
Diffstat (limited to 'lib/public/AppFramework')
-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 8ce140996b7..94e3aed17e2 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -139,4 +139,17 @@ interface IRegistrationContext {
* @since 20.0.0
*/
public function registerSearchProvider(string $class): void;
+
+ /**
+ * Register an alternative login option
+ *
+ * It is allowed to register more than one option per app.
+ *
+ * @param string $class
+ *
+ * @return void
+ *
+ * @since 20.0.0
+ */
+ public function registerAlternativeLogin(string $class): void;
}