2014-03-10 09:04:58 -04:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2014-03-10 09:04:58 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04: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 09:04:58 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Route;
|
|
|
|
|
|
2015-04-16 11:00:08 -04:00
|
|
|
/**
|
|
|
|
|
* Interface IRouter
|
|
|
|
|
*
|
|
|
|
|
* @since 7.0.0
|
2015-12-23 09:22:30 -05:00
|
|
|
* @deprecated 9.0.0
|
2015-04-16 11:00:08 -04:00
|
|
|
*/
|
2014-03-10 09:04:58 -04: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 11:00:08 -04:00
|
|
|
* @since 7.0.0
|
2015-12-08 04:18:59 -05:00
|
|
|
* @deprecated 9.0.0
|
2014-03-10 09:04:58 -04:00
|
|
|
*/
|
2020-03-26 04:30:18 -04:00
|
|
|
public function create($name, $pattern, array $defaults = [], array $requirements = []);
|
2014-03-10 09:04:58 -04:00
|
|
|
}
|