add a new dav event to allow apps to register their own sabredav plugins

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2017-08-30 12:15:01 +02:00
parent 5adc1efe9f
commit f8cc8e1c9e
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ class Server {
$this->server->addPlugin(new CopyEtagHeaderPlugin());
// allow setup of additional plugins
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event);
// Some WebDAV clients do require Class 2 WebDAV support (locking), since
// we do not provide locking we emulate it using a fake locking plugin.
if($request->isUserAgent([