aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/examples/minimal.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-05-29 00:33:28 +0200
committerMario Vavti <mario@mariovavti.com>2016-05-29 00:33:28 +0200
commitaab9766c53e42c3141d0497fce78977d262efbc1 (patch)
treef633ad641d818d6229ea7d14e72de42e739196de /vendor/examples/minimal.php
parent66effbfe0827fc61fff6d248797a894213ad20d6 (diff)
downloadvolse-hubzilla-aab9766c53e42c3141d0497fce78977d262efbc1.tar.gz
volse-hubzilla-aab9766c53e42c3141d0497fce78977d262efbc1.tar.bz2
volse-hubzilla-aab9766c53e42c3141d0497fce78977d262efbc1.zip
missed some files
Diffstat (limited to 'vendor/examples/minimal.php')
-rw-r--r--vendor/examples/minimal.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/examples/minimal.php b/vendor/examples/minimal.php
new file mode 100644
index 000000000..4ac256064
--- /dev/null
+++ b/vendor/examples/minimal.php
@@ -0,0 +1,20 @@
+<?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();