SabrePluginAddEvent.php 646 B

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