1 | <?php |
||
19 | class ApiKeyAuthenticationHandler implements AuthenticationHandlerInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var ObjectManager |
||
23 | */ |
||
24 | private $om; |
||
25 | |||
26 | /** |
||
27 | * @var PasswordHasherInterface |
||
28 | */ |
||
29 | private $passwordHasher; |
||
30 | |||
31 | /** |
||
32 | * @var KeyFactoryInterface |
||
33 | */ |
||
34 | private $keyFactory; |
||
35 | |||
36 | /** |
||
37 | * @var EventDispatcherInterface |
||
38 | */ |
||
39 | private $eventDispatcher; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $modelName; |
||
45 | |||
46 | /** |
||
47 | * @var ClassMetadata |
||
48 | */ |
||
49 | private $classMetadata; |
||
50 | |||
51 | /** |
||
52 | * Constructor. |
||
53 | * |
||
54 | * @param ObjectManager $om |
||
55 | * @param PasswordHasherInterface $passwordHasher |
||
56 | * @param KeyFactoryInterface $keyFactory |
||
57 | * @param EventDispatcherInterface $dispatcher |
||
58 | * @param string $modelName |
||
59 | * @param ClassMetadata $metadata |
||
60 | */ |
||
61 | 21 | public function __construct( |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 17 | public function authenticate(array $credentials) |
|
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | 4 | public function removeSession($user, $purgeJob = false) |
|
141 | |||
142 | /** |
||
143 | * Getter for the object manager. |
||
144 | * |
||
145 | * @return ObjectManager |
||
146 | */ |
||
147 | protected function getOm() |
||
151 | |||
152 | /** |
||
153 | * Getter for the password hasher. |
||
154 | * |
||
155 | * @return PasswordHasherInterface |
||
156 | */ |
||
157 | protected function getPasswordHasher() |
||
161 | |||
162 | /** |
||
163 | * Getter for the key factory. |
||
164 | * |
||
165 | * @return KeyFactoryInterface |
||
166 | */ |
||
167 | protected function getKeyFactory() |
||
171 | |||
172 | /** |
||
173 | * Getter for the dispatcher. |
||
174 | * |
||
175 | * @return EventDispatcherInterface |
||
176 | */ |
||
177 | protected function getEventDispatcher() |
||
181 | |||
182 | /** |
||
183 | * Getter for the model name. |
||
184 | * |
||
185 | * @return string |
||
186 | */ |
||
187 | protected function getModelName() |
||
191 | |||
192 | /** |
||
193 | * @return ClassMetadata |
||
194 | */ |
||
195 | public function getClassMetadata() |
||
199 | } |
||
200 |