We have an event now to add plugins by apps.
|
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event); |
However, it would also make sense to allow apps to register collections on the new dav endpoint:
So basically in
This would allow us to start writing dav endpoints for trashbin and versions etc.
The way I see it there are two approaches here:
- Dispatch an event
- Pro: Very easy
- Con: How to make sure 3rdparty app doesn't hijack the versions/trashbin endpoints?
- Add and entry in info.xml there is then a sort of collections manager?
- Pro: We can give higher preference to "official" apps.
- Cons: more enginering work
Opinions: @MorrisJobke @nickvergessen @blizzz @schiessle @georgehrke
We have an event now to add plugins by apps.
server/apps/dav/lib/Server.php
Line 178 in 5011142
However, it would also make sense to allow apps to register collections on the new dav endpoint:
So basically in
server/apps/dav/lib/RootCollection.php
Line 109 in 5011142
This would allow us to start writing dav endpoints for trashbin and versions etc.
The way I see it there are two approaches here:
Opinions: @MorrisJobke @nickvergessen @blizzz @schiessle @georgehrke