route_parameter_resolver
final class route_parameter_resolver implements method_argument_resolver_interface
| internal |
Route Parameter Resolver.
Resolves parameters mapped from the route definition (e.g., {id}, {slug}). Acts as a fallback for scalar types (int, string) or untyped arguments. Performs automatic type casting for basic scalar types.
Methods
bool
supports(ReflectionParameter $parameter)
Indicates whether this resolver should handle the parameter.
mixed
resolve(ReflectionParameter $parameter, array $route_params)
Resolve the scalar/route parameter, applying type casting when needed.
Details
at line 45
bool
supports(ReflectionParameter $parameter)
Indicates whether this resolver should handle the parameter.
at line 69
mixed
resolve(ReflectionParameter $parameter, array $route_params)
Resolve the scalar/route parameter, applying type casting when needed.