IRouter
in
Interface IRouter
Tags
Table of Contents
Methods
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)