mediatekformation

DateTimeParamConverter
in package
implements ParamConverterInterface

Convert DateTime instances from request attribute variable.

Tags
author

Benjamin Eberlei kontakt@beberlei.de

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
throws
NotFoundHttpException

When invalid date given

Return values
bool

True if the object has been successfully set, else false

Search results