mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
21 lines
399 B
PHP
21 lines
399 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* This example shows the smallest possible sabre/dav server.
|
||
|
*/
|
||
|
include 'vendor/autoload.php';
|
||
|
|
||
|
$server = new Sabre\DAV\Server([
|
||
|
new Sabre\DAV\FS\Directory(__DIR__)
|
||
|
]);
|
||
|
|
||
|
/**
|
||
|
* Ok. Perhaps not the smallest possible. The browser plugin is 100% optional,
|
||
|
* but it really helps understanding the server.
|
||
|
*/
|
||
|
$server->addPlugin(
|
||
|
new Sabre\DAV\Browser\Plugin()
|
||
|
);
|
||
|
|
||
|
$server->exec();
|