class ImplicitRouteBinding

Properties

static protected array<string, array{0: array, 1: array}> $signatureCache

Cached signature parameters keyed by action.

static protected null|WeakMap<object, array{0: array, 1: array}> $objectSignatureCache

Cached signature parameters keyed by callable object.

Methods

static void
flushCache()

Flush the static signature cache.

static void
resolveForRoute(Container $container, Route $route)

Resolve the implicit route bindings for the given route.

static void
resolveBackedEnumsForRoute(Route $route, array $parameters, array $backedEnumParameters)

Resolve the backed enum route bindings for the route.

static string|null
getParameterName(string $name, array $parameters)

Return the parameter name if it exists in the given parameters.

Details

at line 41
static void flushCache()

Flush the static signature cache.

Boot or tests only. Clears the process-wide signature caches shared by every coroutine; next resolution re-reflects.

Return Value

void

at line 53
static void resolveForRoute(Container $container, Route $route)

Resolve the implicit route bindings for the given route.

Parameters

Container $container
Route $route

Return Value

void

Exceptions

Model>
BackedEnumCaseNotFoundException

at line 126
static protected void resolveBackedEnumsForRoute(Route $route, array $parameters, array $backedEnumParameters)

Resolve the backed enum route bindings for the route.

Parameters

Route $route
array $parameters
array $backedEnumParameters

Return Value

void

Exceptions

BackedEnumCaseNotFoundException

at line 156
static protected string|null getParameterName(string $name, array $parameters)

Return the parameter name if it exists in the given parameters.

Parameters

string $name
array $parameters

Return Value

string|null