use new ObjectTree in sabredav
This commit is contained in:
parent
fe0de5fc10
commit
1e0810e807
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue