Nextcloud PHP API (master)

IRouter

Interface IRouter

Tags
since
7.0.0

Table of Contents

Methods

create()  : IRoute
Create a \OCP\Route\IRoute.

Methods

create()

Create a \OCP\Route\IRoute.

public create(string $name, string $pattern[, array<string|int, mixed> $defaults = [] ][, array<string|int, mixed> $requirements = [] ]) : IRoute
Parameters
$name : string

Name of the route to create.

$pattern : string

The pattern to match

$defaults : array<string|int, mixed> = []

An array of default parameter values

$requirements : array<string|int, mixed> = []

An array of requirements for parameters (regexes)

Tags
since
7.0.0
Return values
IRoute

        
On this page

Search results