1
0

GroupBackendRegistered.php 874 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\GroupPluginManager;
  9. use OCA\User_LDAP\IGroupLDAP;
  10. use OCP\EventDispatcher\Event;
  11. /**
  12. * This event is triggered right after the LDAP group backend is registered.
  13. *
  14. * @since 20.0.0
  15. */
  16. class GroupBackendRegistered extends Event {
  17. /** @var GroupPluginManager */
  18. private $pluginManager;
  19. /** @var IGroupLDAP */
  20. private $backend;
  21. public function __construct(IGroupLDAP $backend, GroupPluginManager $pluginManager) {
  22. $this->pluginManager = $pluginManager;
  23. $this->backend = $backend;
  24. }
  25. public function getBackend(): IGroupLDAP {
  26. return $this->backend;
  27. }
  28. public function getPluginManager(): GroupPluginManager {
  29. return $this->pluginManager;
  30. }
  31. }