DoctrineParamConverter
in package
implements
ParamConverterInterface
DoctrineParamConverter.
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
- $defaultOptions : array<string|int, mixed>
- $language : ExpressionLanguage
- $registry : ManagerRegistry
- __construct() : mixed
- apply() : bool
- Stores the object in the request.
- supports() : bool
- Checks if the object is supported.
- find() : mixed
- findDataByMapMethodSignature() : mixed
- findOneBy() : mixed
- findViaExpression() : mixed
- getAnnotationName() : mixed
- getIdentifier() : mixed
- getManager() : mixed
- getOptions() : mixed
Properties
$defaultOptions
private
array<string|int, mixed>
$defaultOptions
$language
private
ExpressionLanguage
$language
$registry
private
ManagerRegistry
$registry
Methods
__construct()
public
__construct([ManagerRegistry $registry = null ][, ExpressionLanguage $expressionLanguage = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $registry : ManagerRegistry = null
- $expressionLanguage : ExpressionLanguage = null
- $options : array<string|int, mixed> = []
Return values
mixed —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
find()
private
find(mixed $class, Request $request, mixed $options, mixed $name) : mixed
Parameters
- $class : mixed
- $request : Request
- $options : mixed
- $name : mixed
Return values
mixed —findDataByMapMethodSignature()
private
findDataByMapMethodSignature(mixed $em, mixed $class, mixed $repositoryMethod, mixed $criteria) : mixed
Parameters
- $em : mixed
- $class : mixed
- $repositoryMethod : mixed
- $criteria : mixed
Return values
mixed —findOneBy()
private
findOneBy(mixed $class, Request $request, mixed $options) : mixed
Parameters
- $class : mixed
- $request : Request
- $options : mixed
Return values
mixed —findViaExpression()
private
findViaExpression(mixed $class, Request $request, mixed $expression, mixed $options, ParamConverter $configuration) : mixed
Parameters
- $class : mixed
- $request : Request
- $expression : mixed
- $options : mixed
- $configuration : ParamConverter
Return values
mixed —getAnnotationName()
private
getAnnotationName(ParamConverter $configuration) : mixed
Parameters
- $configuration : ParamConverter
Return values
mixed —getIdentifier()
private
getIdentifier(Request $request, mixed $options, mixed $name) : mixed
Parameters
- $request : Request
- $options : mixed
- $name : mixed
Return values
mixed —getManager()
private
getManager(mixed $name, mixed $class) : mixed
Parameters
- $name : mixed
- $class : mixed
Return values
mixed —getOptions()
private
getOptions(ParamConverter $configuration[, mixed $strict = true ]) : mixed
Parameters
- $configuration : ParamConverter
- $strict : mixed = true