CustomPrincipalPlugin.php 470 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\CalDAV\Auth;
  8. use Sabre\DAV\Auth\Plugin;
  9. /**
  10. * Set a custom principal uri to allow public requests to its calendar
  11. */
  12. class CustomPrincipalPlugin extends Plugin {
  13. public function setCurrentPrincipal(?string $currentPrincipal): void {
  14. $this->currentPrincipal = $currentPrincipal;
  15. }
  16. }