DateTimeParamConverter
in package
implements
ParamConverterInterface
Convert DateTime instances from request attribute variable.
Tags
Interfaces, Classes, Traits and Enums
- ParamConverterInterface
- Converts request parameters to objects and stores them as request attributes, so they can be injected as controller method arguments.
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
Tags
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