IRouter.php 747 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Route;
  8. /**
  9. * Interface IRouter
  10. *
  11. * @since 7.0.0
  12. * @deprecated 9.0.0
  13. */
  14. interface IRouter {
  15. /**
  16. * Create a \OCP\Route\IRoute.
  17. *
  18. * @param string $name Name of the route to create.
  19. * @param string $pattern The pattern to match
  20. * @param array $defaults An array of default parameter values
  21. * @param array $requirements An array of requirements for parameters (regexes)
  22. * @return \OCP\Route\IRoute
  23. * @since 7.0.0
  24. * @deprecated 9.0.0
  25. */
  26. public function create($name, $pattern, array $defaults = [], array $requirements = []);
  27. }