1
0

IRouter.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  6. * @author Lukas Reschke <lukas@statuscode.ch>
  7. * @author Morris Jobke <hey@morrisjobke.de>
  8. * @author Robin Appelman <robin@icewind.nl>
  9. * @author Roeland Jago Douma <roeland@famdouma.nl>
  10. *
  11. * @license AGPL-3.0
  12. *
  13. * This code is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Affero General Public License, version 3,
  15. * as published by the Free Software Foundation.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License, version 3,
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>
  24. *
  25. */
  26. namespace OCP\Route;
  27. /**
  28. * Interface IRouter
  29. *
  30. * @since 7.0.0
  31. * @deprecated 9.0.0
  32. */
  33. interface IRouter {
  34. /**
  35. * Create a \OCP\Route\IRoute.
  36. *
  37. * @param string $name Name of the route to create.
  38. * @param string $pattern The pattern to match
  39. * @param array $defaults An array of default parameter values
  40. * @param array $requirements An array of requirements for parameters (regexes)
  41. * @return \OCP\Route\IRoute
  42. * @since 7.0.0
  43. * @deprecated 9.0.0
  44. */
  45. public function create($name, $pattern, array $defaults = [], array $requirements = []);
  46. }