diff options
author | Robin Appelman <robin@icewind.nl> | 2017-03-08 13:09:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 13:09:19 +0100 |
commit | 2a8e922d67a1246e101f926f1b0ab287db71929e (patch) | |
tree | c3f67150e3e03386eedc6a23b1c2dcf657e4459b /apps/dav/lib/Server.php | |
parent | 74ac5dffbd07f9a7ac9a248eeafaa0f2852b5f79 (diff) | |
parent | a3e638709b4702156a3ddc0791de1d6ce9fb902e (diff) | |
download | nextcloud-server-2a8e922d67a1246e101f926f1b0ab287db71929e.tar.gz nextcloud-server-2a8e922d67a1246e101f926f1b0ab287db71929e.zip |
Merge pull request #3360 from nextcloud/dav-search
Implement webdav SEARCH
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 5359bfc6991..031bc1d3d81 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -51,6 +51,7 @@ use OCP\SabrePluginEvent; use Sabre\CardDAV\VCFExportPlugin; use Sabre\DAV\Auth\Plugin; use OCA\DAV\Connector\Sabre\TagsPlugin; +use SearchDAV\DAV\SearchPlugin; class Server { @@ -223,6 +224,13 @@ class Server { \OC::$server->getGroupManager(), $userFolder )); + $this->server->addPlugin(new SearchPlugin(new \OCA\DAV\Files\FileSearchBackend( + $this->server->tree, + $user, + \OC::$server->getRootFolder(), + \OC::$server->getShareManager(), + $view + ))); } } }); |