ImplicitRouteBinding
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.
at line 53
static void
resolveForRoute(Container $container, Route $route)
Resolve the implicit route bindings for the given route.
at line 126
static protected void
resolveBackedEnumsForRoute(Route $route, array $parameters, array $backedEnumParameters)
Resolve the backed enum route bindings for the route.
at line 156
static protected string|null
getParameterName(string $name, array $parameters)
Return the parameter name if it exists in the given parameters.