class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface

FormAuthenticationEntryPoint starts an authentication via a login form.

Methods

__construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false)

Constructor.

start(Request $request, AuthenticationException $authException = null)

Starts the authentication scheme.

Details

at line line 39
__construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false)

Constructor.

Parameters

HttpKernelInterface $kernel
HttpUtils $httpUtils An HttpUtils instance
string $loginPath The path to the login form
bool $useForward Whether to forward or redirect to the login form

at line line 50
Response start(Request $request, AuthenticationException $authException = null)

Starts the authentication scheme.

Parameters

Request $request The request that resulted in an AuthenticationException
AuthenticationException $authException The exception that started the authentication process

Return Value

Response