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