1
0

SabrePluginAuthInitEvent.php 694 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /** @var Server */
  18. private $server;
  19. /**
  20. * @since 20.0.0
  21. */
  22. public function __construct(Server $server) {
  23. $this->server = $server;
  24. }
  25. /**
  26. * @since 20.0.0
  27. */
  28. public function getServer(): Server {
  29. return $this->server;
  30. }
  31. }