use new ObjectTree in sabredav

This commit is contained in:
Robin Appelman 2013-06-30 18:28:18 +02:00
parent fe0de5fc10
commit 1e0810e807
1 changed files with 4 additions and 3 deletions

View File

@ -35,10 +35,11 @@ $lockBackend = new OC_Connector_Sabre_Locks();
$requestBackend = new OC_Connector_Sabre_Request(); $requestBackend = new OC_Connector_Sabre_Request();
// Create ownCloud Dir // Create ownCloud Dir
$publicDir = new OC_Connector_Sabre_Directory(''); $rootDir = new OC_Connector_Sabre_Directory('');
$objectTree = new \OC\Connector\Sabre\ObjectTree($rootDir);
// Fire up server // Fire up server
$server = new Sabre_DAV_Server($publicDir); $server = new Sabre_DAV_Server($objectTree);
$server->httpRequest = $requestBackend; $server->httpRequest = $requestBackend;
$server->setBaseUri($baseuri); $server->setBaseUri($baseuri);