Add user backend registration to the bootstrap registration context#23370
Closed
ChristophWurst wants to merge 1 commit intomasterfrom
Closed
Add user backend registration to the bootstrap registration context#23370ChristophWurst wants to merge 1 commit intomasterfrom
ChristophWurst wants to merge 1 commit intomasterfrom
Conversation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
alexeyabel
reviewed
Oct 12, 2020
| ]; | ||
| } | ||
|
|
||
| public function registerUserBackEnd(string $appId, string $class): void { |
There was a problem hiding this comment.
How come classes are passed as strings and not as interfaces? Shouldn't interfaces be enforced by type checks?
I understand this is already the case in the whole class, but I am not familiar with this concept.
Member
Author
There was a problem hiding this comment.
The registration code is run for every single request. User back-ends are built most likely for those requests but other things are just loaded conditionally on demand (lazily) so less resources are wasted. Php allows us to specify the class name to load and we use the dependency injection container to create an instance when needed.
See #20573 for most of the original ideas and design decisions.
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 33974: failuresqliteShow full logmariadb10.1-php7.3
mariadb10.4-php7.4
mysql8.0-php7.4
mysql5.6-php7.3
postgres9-php7.3Show full logpostgres11-php7.4
acceptance-app-files-sharing
Show full log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because currently you have to query the internal user manager to do so.
Ref https://help.nextcloud.com/t/user-backend-api-overhaul/94896