2014-03-10 13:04:58 +00:00
|
|
|
<?php
|
2024-05-23 07:26:56 +00:00
|
|
|
|
2014-03-10 13:04:58 +00:00
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-03-10 13:04:58 +00:00
|
|
|
*/
|
|
|
|
namespace OCP\Route;
|
|
|
|
|
2015-04-16 15:00:08 +00:00
|
|
|
/**
|
|
|
|
* Interface IRouter
|
|
|
|
*
|
|
|
|
* @since 7.0.0
|
2015-12-23 14:22:30 +00:00
|
|
|
* @deprecated 9.0.0
|
2015-04-16 15:00:08 +00:00
|
|
|
*/
|
2014-03-10 13:04:58 +00:00
|
|
|
interface IRouter {
|
|
|
|
/**
|
|
|
|
* Create a \OCP\Route\IRoute.
|
|
|
|
*
|
|
|
|
* @param string $name Name of the route to create.
|
|
|
|
* @param string $pattern The pattern to match
|
|
|
|
* @param array $defaults An array of default parameter values
|
|
|
|
* @param array $requirements An array of requirements for parameters (regexes)
|
|
|
|
* @return \OCP\Route\IRoute
|
2015-04-16 15:00:08 +00:00
|
|
|
* @since 7.0.0
|
2015-12-08 09:18:59 +00:00
|
|
|
* @deprecated 9.0.0
|
2014-03-10 13:04:58 +00:00
|
|
|
*/
|
2020-03-26 08:30:18 +00:00
|
|
|
public function create($name, $pattern, array $defaults = [], array $requirements = []);
|
2014-03-10 13:04:58 +00:00
|
|
|
}
|