Add Sabre_DAV_Browser_Plugin to *DAV-servers to ease debugging
This commit is contained in:
parent
917ea58a8c
commit
73d0caf8a4
3 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ $server->setBaseUri(OC::$WEBROOT.'/apps/calendar/caldav.php');
|
|||
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
|
||||
$server->addPlugin(new Sabre_CalDAV_Plugin());
|
||||
$server->addPlugin(new Sabre_DAVACL_Plugin());
|
||||
$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
|
||||
|
||||
// And off we go!
|
||||
$server->exec();
|
||||
|
|
|
@ -43,6 +43,7 @@ $server->setBaseUri(OC::$WEBROOT.'/apps/contacts/carddav.php');
|
|||
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
|
||||
$server->addPlugin(new Sabre_CardDAV_Plugin());
|
||||
$server->addPlugin(new Sabre_DAVACL_Plugin());
|
||||
$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
|
||||
|
||||
// And off we go!
|
||||
$server->exec();
|
||||
|
|
|
@ -42,6 +42,7 @@ $server->setBaseUri(OC::$WEBROOT.'/files/webdav.php');
|
|||
// Load plugins
|
||||
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
|
||||
$server->addPlugin(new Sabre_DAV_Locks_Plugin($lockBackend));
|
||||
$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
|
||||
|
||||
// And off we go!
|
||||
$server->exec();
|
||||
|
|
Loading…
Reference in a new issue