1
0

UserBackendRegistered.php 864 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\User_LDAP\Events;
  8. use OCA\User_LDAP\IUserLDAP;
  9. use OCA\User_LDAP\UserPluginManager;
  10. use OCP\EventDispatcher\Event;
  11. /**
  12. * This event is triggered right after the LDAP user backend is registered.
  13. *
  14. * @since 20.0.0
  15. */
  16. class UserBackendRegistered extends Event {
  17. /** @var IUserLDAP */
  18. private $backend;
  19. /** @var UserPluginManager */
  20. private $pluginManager;
  21. public function __construct(IUserLDAP $backend, UserPluginManager $pluginManager) {
  22. $this->backend = $backend;
  23. $this->pluginManager = $pluginManager;
  24. }
  25. public function getBackend(): IUserLDAP {
  26. return $this->backend;
  27. }
  28. public function getPluginManager(): UserPluginManager {
  29. return $this->pluginManager;
  30. }
  31. }