| @@ 202-214 (lines=13) @@ | ||
| 199 | /** |
|
| 200 | * {@inheritdoc} |
|
| 201 | */ |
|
| 202 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
|
| 203 | { |
|
| 204 | $event = new AuthenticationHandlerEvent( |
|
| 205 | $this->successHandler->onAuthenticationSuccess($request, $token), |
|
| 206 | $request, |
|
| 207 | null, |
|
| 208 | $token, |
|
| 209 | $providerKey |
|
| 210 | ); |
|
| 211 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event); |
|
| 212 | ||
| 213 | return $event->getResponse(); |
|
| 214 | } |
|
| 215 | ||
| 216 | /** |
|
| 217 | * {@inheritdoc} |
|
| @@ 219-229 (lines=11) @@ | ||
| 216 | /** |
|
| 217 | * {@inheritdoc} |
|
| 218 | */ |
|
| 219 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
|
| 220 | { |
|
| 221 | $event = new AuthenticationHandlerEvent( |
|
| 222 | $this->failureHandler->onAuthenticationFailure($request, $exception), |
|
| 223 | $request, |
|
| 224 | $exception |
|
| 225 | ); |
|
| 226 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::FAILURE, $event); |
|
| 227 | ||
| 228 | return $event->getResponse(); |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * {@inheritdoc} |
|