interface RouteFiltererInterface (View source)

Methods

void
filter(string $name, mixed $callback)

Register a new filter with the router.

mixed
callRouteFilter(string $filter, array $parameters, Route $route, Request $request, Response|null $response = null)

Call the given route filter.

Details

void filter(string $name, mixed $callback)

Register a new filter with the router.

Parameters

string $name
mixed $callback

Return Value

void

mixed callRouteFilter(string $filter, array $parameters, Route $route, Request $request, Response|null $response = null)

Call the given route filter.

Parameters

string $filter
array $parameters
Route $route
Request $request
Response|null $response

Return Value

mixed