SabrePluginAddEvent.php 698 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 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 plugins.
  13. *
  14. * @since 28.0.0
  15. */
  16. class SabrePluginAddEvent extends Event {
  17. /** @var Server */
  18. private $server;
  19. /**
  20. * @since 28.0.0
  21. */
  22. public function __construct(Server $server) {
  23. parent::__construct();
  24. $this->server = $server;
  25. }
  26. /**
  27. * @since 28.0.0
  28. */
  29. public function getServer(): Server {
  30. return $this->server;
  31. }
  32. }