IRequestContext.php 591 B

12345678910111213141516171819202122232425262728
  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 OCP\Http\WellKnown;
  8. use OCP\IRequest;
  9. /**
  10. * The context object for \OCP\Http\IWellKnownHandler::handle
  11. *
  12. * Objects of this type will transport any optional information, e.g. the request
  13. * object through which the app well known handler can obtain URL parameters
  14. *
  15. * @since 21.0.0
  16. */
  17. interface IRequestContext {
  18. /**
  19. * @return IRequest
  20. *
  21. * @since 21.0.0
  22. */
  23. public function getHttpRequest(): IRequest;
  24. }