You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/lib/private/Collaboration/Collaborators/UserByMailPlugin.php

45 lines
1.0 KiB

<?php
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Collaboration\Collaborators;
use OC\KnownUser\KnownUserService;
use OCP\Contacts\IManager;
use OCP\Federation\ICloudIdManager;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\IUserSession;
use OCP\Mail\IEmailValidator;
use OCP\Share\IShare;
/**
* Dummy subclass to initialize a MailPlugin with a specific share type.
*/
class UserByMailPlugin extends MailPlugin {
public function __construct(
IManager $contactsManager,
ICloudIdManager $cloudIdManager,
IConfig $config,
IGroupManager $groupManager,
KnownUserService $knownUserService,
IUserSession $userSession,
IEmailValidator $emailValidator,
mixed $shareWithGroupOnlyExcludeGroupsList = [],
) {
parent::__construct(
$contactsManager,
$cloudIdManager,
$config,
$groupManager,
$knownUserService,
$userSession,
$emailValidator,
$shareWithGroupOnlyExcludeGroupsList,
IShare::TYPE_USER,
);
}
}