Add Sabre_DAV_Browser_Plugin to *DAV-servers to ease debugging

This commit is contained in:
Jakob Sack 2011-09-23 09:40:01 +02:00
parent 917ea58a8c
commit 73d0caf8a4
3 changed files with 3 additions and 0 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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();