class RouteParameterBinder

Properties

protected Route $route

The route instance.

Methods

void
__construct(Route $route)

Create a new Route parameter binder instance.

array
parameters(Request $request)

Get the parameters for the route.

array
bindPathParameters(Request $request)

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

array
bindHostParameters(Request $request, array $parameters)

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

array
matchToKeys(array $matches)

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

array
replaceDefaults(array $parameters)

Replace null parameters with their defaults.

Details

at line 22
void __construct(Route $route)

Create a new Route parameter binder instance.

Parameters

Route $route

Return Value

void

at line 33
array parameters(Request $request)

Get the parameters for the route.

Parameters

Request $request

Return Value

array

at line 58
protected array bindPathParameters(Request $request)

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

Parameters

Request $request

Return Value

array

at line 74
protected array bindHostParameters(Request $request, array $parameters)

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

Parameters

Request $request
array $parameters

Return Value

array

at line 87
protected array matchToKeys(array $matches)

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

Parameters

array $matches

Return Value

array

at line 106
protected array replaceDefaults(array $parameters)

Replace null parameters with their defaults.

Parameters

array $parameters

Return Value

array