1 | <?php |
||
25 | class ResolveEntityParamConverter extends DoctrineParamConverter |
||
26 | { |
||
27 | /** |
||
28 | * @var ManagerRegistry |
||
29 | */ |
||
30 | protected $registry; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $mapping; |
||
36 | |||
37 | /** |
||
38 | * @param array $mapping Interface to entity mapping |
||
39 | * @param ManagerRegistry|null $registry Registry manager |
||
40 | */ |
||
41 | public function __construct(array $mapping, ManagerRegistry $registry = null) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function apply(Request $request, ParamConverter $configuration) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function supports(ParamConverter $configuration) |
||
68 | |||
69 | /** |
||
70 | * Resolves the target entity. |
||
71 | * |
||
72 | * @param ParamConverter $configuration Contains the name, class and options of the object |
||
73 | * |
||
74 | * @return ParamConverter |
||
75 | */ |
||
76 | protected function resolveTargetEntity(ParamConverter $configuration) |
||
87 | } |
||
88 |