Neuron-PHP

Route
in package

Static wrapper for the Router singleton.

Table of Contents

Methods

delete()  : RouteMap
dispatch()  : mixed
get()  : RouteMap
post()  : RouteMap
put()  : RouteMap

Methods

delete()

public static delete(string $route, mixed $function) : RouteMap
Parameters
$route : string
$function : mixed
Tags
throws
Exception
Return values
RouteMap

dispatch()

public static dispatch(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>
Tags
throws
Exception

get()

public static get(string $route, mixed $function) : RouteMap
Parameters
$route : string
$function : mixed
Tags
throws
Exception
Return values
RouteMap

post()

public static post(string $route, mixed $function) : RouteMap
Parameters
$route : string
$function : mixed
Tags
throws
Exception
Return values
RouteMap

put()

public static put(string $route, mixed $function) : RouteMap
Parameters
$route : string
$function : mixed
Tags
throws
Exception
Return values
RouteMap

        
On this page

Search results