ParamConversionEnhancer
class ParamConversionEnhancer implements EnhancerInterface, EventSubscriberInterface (View source)
Provides a route enhancer that handles parameter conversion.
Properties
| protected ParamConverterManagerInterface | $paramConverterManager | The parameter conversion manager. |
Methods
__construct(ParamConverterManagerInterface $param_converter_manager)
Constructs a new ParamConversionEnhancer.
array
enhance(array $defaults, Request $request)
Updates the defaults for a route definition based on the request.
ParameterBag
copyRawVariables(array $defaults)
Store a backup of the raw values that corresponding to the route pattern.
onException(ExceptionEvent $event)
Catches failed parameter conversions and throw a 404 instead.
static
getSubscribedEvents()
{@inheritdoc}
Details
__construct(ParamConverterManagerInterface $param_converter_manager)
Constructs a new ParamConversionEnhancer.
array
enhance(array $defaults, Request $request)
Updates the defaults for a route definition based on the request.
protected ParameterBag
copyRawVariables(array $defaults)
Store a backup of the raw values that corresponding to the route pattern.
onException(ExceptionEvent $event)
Catches failed parameter conversions and throw a 404 instead.
static
getSubscribedEvents()
{@inheritdoc}