FormAuthenticationEntryPoint

FormAuthenticationEntryPoint

class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface

FormAuthenticationEntryPoint starts an authentication via a login form.

Methods

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

Constructor.

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

Starts the authentication scheme.

Details

__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

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
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部