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