1 | <?php |
||
15 | class FormAuthenticator extends AbstractFormLoginAuthenticator |
||
16 | { |
||
17 | /** @var UserPasswordEncoderInterface */ |
||
18 | private $passwordEncoder; |
||
19 | |||
20 | /** RouterInterface */ |
||
21 | private $router; |
||
22 | |||
23 | /** array */ |
||
24 | private $redirectRoutes = []; |
||
25 | |||
26 | /** |
||
27 | * @param UserPasswordEncoderInterface $passwordEncoder |
||
28 | * @param RouterInterface $router |
||
29 | * @param array $redirectRoutes |
||
30 | */ |
||
31 | public function __construct( |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | * |
||
44 | * @return FormCredentials |
||
45 | */ |
||
46 | public function getCredentials(Request $request) |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function getUser($credentials, UserProviderInterface $userProvider) |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function checkCredentials($credentials, UserInterface $user) |
||
81 | |||
82 | /** |
||
83 | * {@inheritDoc} |
||
84 | */ |
||
85 | protected function getLoginUrl() |
||
89 | |||
90 | /** |
||
91 | * {@inheritDoc} |
||
92 | */ |
||
93 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
||
105 | |||
106 | protected function getSuccessRedirectUrl(TokenInterface $token) |
||
116 | |||
117 | protected function getDefaultSuccessRedirectURL() |
||
121 | } |
||
122 |