123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- declare(strict_types=1);
- /**
- * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
- namespace OCA\User_LDAP\Events;
- use OCA\User_LDAP\IUserLDAP;
- use OCA\User_LDAP\UserPluginManager;
- use OCP\EventDispatcher\Event;
- /**
- * This event is triggered right after the LDAP user backend is registered.
- *
- * @since 20.0.0
- */
- class UserBackendRegistered extends Event {
- /** @var IUserLDAP */
- private $backend;
- /** @var UserPluginManager */
- private $pluginManager;
- public function __construct(IUserLDAP $backend, UserPluginManager $pluginManager) {
- $this->backend = $backend;
- $this->pluginManager = $pluginManager;
- }
- public function getBackend(): IUserLDAP {
- return $this->backend;
- }
- public function getPluginManager(): UserPluginManager {
- return $this->pluginManager;
- }
- }
|