ParamConverterInterface
in
Converts request parameters to objects and stores them as request attributes, so they can be injected as controller method arguments.
Tags
Table of Contents
- apply() : bool
- Stores the object in the request.
- supports() : bool
- Checks if the object is supported.
Methods
apply()
Stores the object in the request.
public
apply(Request $request, ParamConverter $configuration) : bool
Parameters
- $request : Request
- $configuration : ParamConverter
-
Contains the name, class and options of the object
Return values
bool —True if the object has been successfully set, else false
supports()
Checks if the object is supported.
public
supports(ParamConverter $configuration) : bool
Parameters
- $configuration : ParamConverter
Return values
bool —True if the object is supported, else false