mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 06:27:35 +02:00
Fix ctor call
This commit is contained in:
parent
e7a8be2588
commit
23a8c93fd2
@ -25,12 +25,10 @@ use OCA\DAV\Connector\Sabre\Principal;
|
||||
|
||||
\OC::$server->registerService('CardDAVSyncService', function() {
|
||||
|
||||
$config = \OC::$server->getConfig();
|
||||
$userManager = \OC::$server->getUserManager();
|
||||
$dbConnection = \OC::$server->getDatabaseConnection();
|
||||
|
||||
$principalBackend = new Principal(
|
||||
$config,
|
||||
$userManager
|
||||
);
|
||||
|
||||
|
@ -63,7 +63,6 @@ class CreateAddressBook extends Command {
|
||||
throw new \InvalidArgumentException("User <$user> in unknown.");
|
||||
}
|
||||
$principalBackend = new Principal(
|
||||
$this->config,
|
||||
$this->userManager
|
||||
);
|
||||
|
||||
|
@ -57,7 +57,6 @@ class SyncSystemAddressBook extends Command {
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
$principalBackend = new Principal(
|
||||
$this->config,
|
||||
$this->userManager
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user