1
0

SabrePluginAuthInitEvent.php 642 B

123456789101112131415161718192021222324252627282930313233343536
  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\DAV\Events;
  8. use OCP\EventDispatcher\Event;
  9. use Sabre\DAV\Server;
  10. /**
  11. * This event is triggered during the setup of the SabreDAV server to allow the
  12. * registration of additional authentication backends.
  13. *
  14. * @since 20.0.0
  15. */
  16. class SabrePluginAuthInitEvent extends Event {
  17. /**
  18. * @since 20.0.0
  19. */
  20. public function __construct(
  21. private Server $server,
  22. ) {
  23. }
  24. /**
  25. * @since 20.0.0
  26. */
  27. public function getServer(): Server {
  28. return $this->server;
  29. }
  30. }