From ec245d5feccc63abae3944c2ed59c99fbad3e6d7 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 27 Feb 2020 16:54:07 +0100 Subject: Add address book plugins Signed-off-by: Christoph Wurst --- apps/dav/appinfo/v1/carddav.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/dav/appinfo/v1/carddav.php') 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( -- cgit v1.2.3