1 | <?php |
||
13 | class Db extends AbstractAdapter |
||
14 | { |
||
15 | /** |
||
16 | * @var UserMapperInterface |
||
17 | */ |
||
18 | protected $mapper; |
||
19 | |||
20 | /** |
||
21 | * @var closure / invokable object |
||
22 | */ |
||
23 | protected $credentialPreprocessor; |
||
24 | |||
25 | /** |
||
26 | * @var ServiceManager |
||
27 | */ |
||
28 | protected $serviceManager; |
||
29 | |||
30 | /** |
||
31 | * @var AuthenticationOptionsInterface |
||
32 | */ |
||
33 | protected $options; |
||
34 | |||
35 | /** |
||
36 | * Called when user id logged out |
||
37 | * @param AuthEvent $e event passed |
||
38 | */ |
||
39 | public function logout(AuthEvent $e) |
||
43 | |||
44 | public function authenticate(AuthEvent $e) |
||
115 | |||
116 | protected function updateUserPasswordHash($userObject, $password, $bcrypt) |
||
126 | |||
127 | public function preprocessCredential($credential) |
||
135 | |||
136 | /** |
||
137 | * getMapper |
||
138 | * |
||
139 | * @return UserMapperInterface |
||
140 | */ |
||
141 | public function getMapper() |
||
148 | |||
149 | /** |
||
150 | * setMapper |
||
151 | * |
||
152 | * @param UserMapperInterface $mapper |
||
153 | * @return Db |
||
154 | */ |
||
155 | public function setMapper(UserMapperInterface $mapper) |
||
160 | |||
161 | /** |
||
162 | * Get credentialPreprocessor. |
||
163 | * |
||
164 | * @return \callable |
||
165 | */ |
||
166 | public function getCredentialPreprocessor() |
||
170 | |||
171 | /** |
||
172 | * Set credentialPreprocessor. |
||
173 | * |
||
174 | * @param $credentialPreprocessor the value to be set |
||
175 | */ |
||
176 | public function setCredentialPreprocessor($credentialPreprocessor) |
||
181 | |||
182 | /** |
||
183 | * Retrieve service manager instance |
||
184 | * |
||
185 | * @return ServiceManager |
||
186 | */ |
||
187 | public function getServiceManager() |
||
191 | |||
192 | /** |
||
193 | * Set service manager instance |
||
194 | * |
||
195 | * @param ServiceManager $locator |
||
196 | * @return void |
||
197 | */ |
||
198 | public function setServiceManager(ServiceManager $serviceManager) |
||
202 | |||
203 | /** |
||
204 | * @param AuthenticationOptionsInterface $options |
||
205 | */ |
||
206 | public function setOptions(AuthenticationOptionsInterface $options) |
||
210 | |||
211 | /** |
||
212 | * @return AuthenticationOptionsInterface |
||
213 | */ |
||
214 | public function getOptions() |
||
221 | } |
||
222 |