Route
in package
Static wrapper for the Router singleton.
Table of Contents
Methods
Methods
delete()
public
static delete(string $route, mixed $function) : RouteMap
Parameters
- $route : string
- $function : mixed
Tags
Return values
RouteMapdispatch()
public
static dispatch(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
Tags
get()
public
static get(string $route, mixed $function) : RouteMap
Parameters
- $route : string
- $function : mixed
Tags
Return values
RouteMappost()
public
static post(string $route, mixed $function) : RouteMap
Parameters
- $route : string
- $function : mixed
Tags
Return values
RouteMapput()
public
static put(string $route, mixed $function) : RouteMap
Parameters
- $route : string
- $function : mixed