FormAuthenticationEntryPoint
class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface
FormAuthenticationEntryPoint запускает аутентификацию через форму входа.
Методы
| __construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false) Конструктор. | ||
| Response | start(Request $request, AuthenticationException $authException = null) Запускает схему аутентификации. |
Подробности
__construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false)
Конструктор.
Параметры
| HttpKernelInterface | $kernel | |
| HttpUtils | $httpUtils | Экземпляр HttpUtils |
| string | $loginPath | Путь к форме входа |
| bool | $useForward | Перенаправлять или переадресовывать на форму входа |
Response start(Request $request, AuthenticationException $authException = null)
Запускает схему аутентификации.
Параметры
| Request | $request | Запрос, который привел к AuthenticationException |
| AuthenticationException | $authException | Исключение, которое инициировало процесс аутентификации |
Возвращаемое значение
| Response |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Http/EntryPoint/FormAuthenticationEntryPoint.html