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 | 10 | public function __construct( |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | 7 | public function authenticate(array $credentials) |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | 3 | public function removeSession($user, $purgeJob = false) |
|
138 | |||
139 | /** |
||
140 | * Getter for the object manager. |
||
141 | * |
||
142 | * @return ObjectManager |
||
143 | */ |
||
144 | protected function getOm() |
||
148 | |||
149 | /** |
||
150 | * Getter for the password hasher. |
||
151 | * |
||
152 | * @return PasswordHasherInterface |
||
153 | */ |
||
154 | protected function getPasswordHasher() |
||
158 | |||
159 | /** |
||
160 | * Getter for the key factory. |
||
161 | * |
||
162 | * @return KeyFactoryInterface |
||
163 | */ |
||
164 | protected function getKeyFactory() |
||
168 | |||
169 | /** |
||
170 | * Getter for the dispatcher. |
||
171 | * |
||
172 | * @return EventDispatcherInterface |
||
173 | */ |
||
174 | protected function getEventDispatcher() |
||
178 | |||
179 | /** |
||
180 | * Getter for the model name. |
||
181 | * |
||
182 | * @return string |
||
183 | */ |
||
184 | protected function getModelName() |
||
188 | |||
189 | /** |
||
190 | * @return ClassMetadata |
||
191 | */ |
||
192 | public function getClassMetadata() |
||
196 | } |
||
197 |