Symfony2 API
Class

Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint

class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface

FormAuthenticationEntryPoint starts an authentication via a login form.

Methods

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

Constructor

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

Starts the authentication scheme.

Details

at line 40
public __construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, Boolean $useForward = false)

Constructor

Parameters

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

at line 51
public 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