From fcbc6437caa260c5a701f4593ba7272779398bae Mon Sep 17 00:00:00 2001 From: Cedric Kastner Date: Sat, 5 Sep 2015 14:28:22 +0200 Subject: [PATCH] Added PropertyStorage functionality --- lib/Server/Server.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Server/Server.php b/lib/Server/Server.php index 09ee242..dcb69d0 100644 --- a/lib/Server/Server.php +++ b/lib/Server/Server.php @@ -114,6 +114,7 @@ protected function initialize() { $this->initializeAuthentication(); $this->initializePrincipals($principalBackend); $this->initializeCardDAV($principalBackend); + $this->initializePropertyStorage(); $this->initializeCalDAV($principalBackend); $this->initializeScheduling(); $this->initializeWebDAV($principalBackend); @@ -207,6 +208,17 @@ protected function initializeCardDAV(DavAcl\Principal\Backend $principalBackend) $this->getServer()->addPlugin(new SabreCardDav\VCFExportPlugin()); } + /** + * Initialize PropertyStorage + * + * @return void + */ + protected function initializePropertyStorage() + { + $backend = new SabreDav\PropertyStorage\Backend\PDO($this->getDatabase()); + $this->getServer()->addPlugin(new SabreDav\PropertyStorage\Plugin($backend)); + } + /** * Initialize CalDAV. *