Skip to content

Commit

Permalink
add legacy dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre authored Mar 29, 2021
1 parent e84de68 commit 44e4b8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NextcloudContacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ final public function __construct($userId, $defaultAcl)
);
$db = OC::$server->getDatabaseConnection();
$userManager = OC::$server->getUserManager();
$dispatcher = OC::$server->getEventDispatcher();
$dispatcher = OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class);
$legacyDispatcher = OC::$server->getEventDispatcher();

$this->cardDavBackend = new CardDavBackend(
$db,
$principalBackend,
$userManager,
OC::$server->getGroupManager(),
$dispatcher,
$legacyDispatcher,
true
);
}
Expand Down

0 comments on commit 44e4b8a

Please sign in to comment.