|
6 | 6 |
|
7 | 7 | <?= $user_is_entity ? "use $user_fully_qualified_class_name;\n" : null ?>
|
8 | 8 | <?= $user_is_entity ? "use Doctrine\\ORM\\EntityManagerInterface;\n" : null ?>
|
9 |
| -<!--use Symfony\Component\HttpFoundation\RedirectResponse;--> |
10 |
| -<!--use Symfony\Component\HttpFoundation\Request;--> |
11 | 9 | <?= ($user_needs_encoder && str_contains($password_encoder_details->getUseStatement() , 'Hasher')) ? $password_encoder_details->getUseStatement() : null ?>
|
12 |
| -<!--use Symfony\Component\Routing\Generator\UrlGeneratorInterface;--> |
13 |
| -<!--use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;--> |
14 | 10 | <?= ($user_needs_encoder && str_contains($password_encoder_details->getUseStatement() , 'Encoder')) ? $password_encoder_details->getUseStatement() : null ?>
|
15 |
| -<!--use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;--> |
16 | 11 | <?= $user_needs_encoder ? "use Symfony\\Component\\Security\\Core\\Encoder\\UserPasswordEncoderInterface;\n" : null ?>
|
17 |
| -<!--use Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException;--> |
18 |
| -<!--use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;--> |
19 |
| -<!--use Symfony\Component\Security\Core\Security;--> |
20 |
| -<!--use Symfony\Component\Security\Core\User\UserInterface;--> |
21 |
| -<!--use Symfony\Component\Security\Core\User\UserProviderInterface;--> |
22 |
| -<!--use Symfony\Component\Security\Csrf\CsrfToken;--> |
23 |
| -<!--use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;--> |
24 |
| -<!--use Symfony\Component\Security\Guard\Authenticator\AbstractFormLoginAuthenticator;--> |
25 | 12 | <?= ($password_authenticated = $user_needs_encoder && interface_exists('Symfony\Component\Security\Guard\PasswordAuthenticatedInterface')) ? "use Symfony\Component\Security\Guard\PasswordAuthenticatedInterface;\n" : '' ?>
|
26 |
| -<!--use Symfony\Component\Security\Http\Util\TargetPathTrait;--> |
27 | 13 |
|
28 | 14 | class <?= $class_name; ?> extends AbstractFormLoginAuthenticator<?= $password_authenticated ? " implements PasswordAuthenticatedInterface\n" : "\n" ?>
|
29 | 15 | {
|
|
0 commit comments