1 | <?php |
||
18 | class DoctrineRestResourceController extends CrudServiceRestResourceController |
||
19 | { |
||
20 | /** |
||
21 | * @var Normalizer |
||
22 | */ |
||
23 | private $normalizer; |
||
24 | |||
25 | /** |
||
26 | * @var ValidatorInterface |
||
27 | */ |
||
28 | private $validator; |
||
29 | |||
30 | /** |
||
31 | * @var RestRequestParserInterface |
||
32 | */ |
||
33 | private $requestParser; |
||
34 | |||
35 | /** |
||
36 | * @var RequestStack |
||
37 | */ |
||
38 | private $requestStack; |
||
39 | |||
40 | /** |
||
41 | * @var MetadataFactoryInterface |
||
42 | */ |
||
43 | private $metadataFactory; |
||
44 | |||
45 | /** |
||
46 | * @var PropertyAccessorInterface |
||
47 | */ |
||
48 | private $propertyAccessor; |
||
49 | |||
50 | /** |
||
51 | * @var AuthorizationCheckerInterface |
||
52 | */ |
||
53 | private $authorizationChecker; |
||
54 | |||
55 | /** |
||
56 | * @var EntityManagerInterface |
||
57 | */ |
||
58 | private $entityManager; |
||
59 | |||
60 | 80 | public function __construct( |
|
77 | |||
78 | /** |
||
79 | * @return CrudServiceInterface |
||
80 | */ |
||
81 | 72 | protected function getService(): CrudServiceInterface |
|
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | 62 | protected function getNormalizer() |
|
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | 24 | protected function getValidator() |
|
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | 24 | protected function getRequestParser() |
|
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | 80 | protected function getRequestStack() |
|
129 | |||
130 | /** |
||
131 | * {@inheritdoc} |
||
132 | */ |
||
133 | 80 | protected function getMetadataFactory() |
|
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | protected function getPropertyAccessor() |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | 46 | protected function getAuthorizationChecker(): ?AuthorizationCheckerInterface |
|
153 | |||
154 | /** |
||
155 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
156 | */ |
||
157 | 76 | public function setAuthorizationChecker(AuthorizationCheckerInterface $authorizationChecker): void |
|
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | 72 | protected function getEntityManager() |
|
169 | } |
||
170 |