Notice: Undefined variable: namespace in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 3
; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Http\Authenticator\AbstractLoginFormAuthenticator; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\CsrfTokenBadge; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\PasswordCredentials; use Symfony\Component\Security\Http\Authenticator\Passport\Passport;
Notice: Undefined variable: use_legacy_passport_interface in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 16
use Symfony\Component\Security\Http\Util\TargetPathTrait; class
Notice: Undefined variable: class_name in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 19
extends AbstractLoginFormAuthenticator { use TargetPathTrait; public const LOGIN_ROUTE = 'app_login'; private
Notice: Undefined variable: use_typed_properties in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 25
$urlGenerator; public function __construct(UrlGeneratorInterface $urlGenerator) { $this->urlGenerator = $urlGenerator; } public function authenticate(Request $request):
Notice: Undefined variable: use_legacy_passport_interface in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 32
Passport { $
Notice: Undefined variable: username_field_var in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 34
= $request->request->get('
Notice: Undefined variable: username_field in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 34
', ''); $request->getSession()->set(Security::LAST_USERNAME, $
Notice: Undefined variable: username_field_var in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 36
); return new Passport( new UserBadge($
Notice: Undefined variable: username_field_var in D:\workspaces\liZiPingBack\vendor\symfony\maker-bundle\src\Resources\skeleton\authenticator\Security52LoginFormAuthenticator.tpl.php on line 39
), new PasswordCredentials($request->request->get('password', '')), [ new CsrfTokenBadge('authenticate', $request->request->get('_csrf_token')), ] ); } public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response { if ($targetPath = $this->getTargetPath($request->getSession(), $firewallName)) { return new RedirectResponse($targetPath); } // For example: // return new RedirectResponse($this->urlGenerator->generate('some_route')); throw new \Exception('TODO: provide a valid redirect inside '.__FILE__); } protected function getLoginUrl(Request $request): string { return $this->urlGenerator->generate(self::LOGIN_ROUTE); } }