Documentation

RouteParameterBinder
in package

Table of Contents

$route  : Route
The route instance.
__construct()  : void
Create a new Route parameter binder instance.
parameters()  : array<string|int, mixed>
Get the parameters for the route.
bindHostParameters()  : array<string|int, mixed>
Extract the parameter list from the host part of the request.
bindPathParameters()  : array<string|int, mixed>
Get the parameter matches for the path portion of the URI.
matchToKeys()  : array<string|int, mixed>
Combine a set of parameter matches with the route's keys.
replaceDefaults()  : array<string|int, mixed>
Replace null parameters with their defaults.

Properties

Methods

__construct()

Create a new Route parameter binder instance.

public __construct(Route $route) : void
Parameters
$route : Route
Return values
void

parameters()

Get the parameters for the route.

public parameters(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

bindHostParameters()

Extract the parameter list from the host part of the request.

protected bindHostParameters(Request $request, array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
$request : Request
$parameters : array<string|int, mixed>
Return values
array<string|int, mixed>

bindPathParameters()

Get the parameter matches for the path portion of the URI.

protected bindPathParameters(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

matchToKeys()

Combine a set of parameter matches with the route's keys.

protected matchToKeys(array<string|int, mixed> $matches) : array<string|int, mixed>
Parameters
$matches : array<string|int, mixed>
Return values
array<string|int, mixed>

replaceDefaults()

Replace null parameters with their defaults.

protected replaceDefaults(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results