diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-02-27 16:54:07 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-09 13:12:18 +0100 |
commit | ec245d5feccc63abae3944c2ed59c99fbad3e6d7 (patch) | |
tree | f2d5b6bfe21649707b7edd05f516a1572b593d05 /apps/dav/appinfo | |
parent | ac03f54079535fd9e047fbe3fbbe2a5768eb6e83 (diff) | |
download | nextcloud-server-ec245d5feccc63abae3944c2ed59c99fbad3e6d7.tar.gz nextcloud-server-ec245d5feccc63abae3944c2ed59c99fbad3e6d7.zip |
Add address book plugins
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index a47242f8250..b8886c0d152 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -27,6 +27,7 @@ */ // Backends +use OCA\DAV\AppInfo\PluginManager; use OCA\DAV\CardDAV\AddressBookRoot; use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\Connector\LegacyDAVACL; @@ -34,6 +35,7 @@ use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin; use OCA\DAV\Connector\Sabre\MaintenancePlugin; use OCA\DAV\Connector\Sabre\Principal; +use OCP\App\IAppManager; use Sabre\CardDAV\Plugin; $authBackend = new Auth( @@ -63,7 +65,8 @@ $debugging = \OC::$server->getConfig()->getSystemValue('debug', false); $principalCollection = new \Sabre\CalDAV\Principal\Collection($principalBackend); $principalCollection->disableListing = !$debugging; // Disable listing -$addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend); +$pluginManager = new PluginManager(\OC::$server, \OC::$server->query(IAppManager::class)); +$addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend, $pluginManager); $addressBookRoot->disableListing = !$debugging; // Disable listing $nodes = array( |