-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load apps that have a dav type set before the dav server plugins #12448
Conversation
@@ -103,9 +103,7 @@ private function populate() { | |||
if (!isset($info['types']) || !in_array('dav', $info['types'], true)) { | |||
continue; | |||
} | |||
// FIXME: switch to public API once available | |||
// load app to make sure its classes are available |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
then we should add this type for comments, too, right? Not sure which other apps have plugins. (it does incorporate logging, but we should not rely on that) |
The comments plugins are still located in the dav app, so for now we don't need that i guess. |
Signed-off-by: Julius Härtl <[email protected]>
7ade85a
to
5a5d46b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense 👍
/backport to stable14 |
/backport to stable13 |
backport to stable13 in #12594 |
backport to stable13 in #12595 |
/backport to stable14 |
backport to stable14 in #12596 |
To implement comments support for an app, it is required to register a comments entity:
This is usually done in the app.php. When using the comments dav endpoint, the app is only loaded if either one of the types logging/authentication/filesystem is set in the info.xml, but this will remove the ability to enable the app just for a specific group. See
We already have a type 'dav' that is used for loading dav plugins, so this PR will make sure we load app apps with a type 'dav' set in info.xml before registering plugins in the DAV Server class.
cc @nickvergessen @blizzz