PHP Класс Scheb\TwoFactorBundle\Security\TwoFactor\EventListener\InteractiveLoginListener

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface $authenticationContextFactory, Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, array $supportedTokens, array $ipWhitelist ) Construct a listener for login events.
onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event ) Listen for successful login events.

Приватные методы

Метод Описание
isTokenSupported ( mixed $token ) : boolean Check if the token class is supported.

Описание методов

__construct() публичный Метод

Construct a listener for login events.
public __construct ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface $authenticationContextFactory, Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface $authHandler, array $supportedTokens, array $ipWhitelist )
$authenticationContextFactory Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextFactoryInterface
$authHandler Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationHandlerInterface
$supportedTokens array
$ipWhitelist array

onSecurityInteractiveLogin() публичный Метод

Listen for successful login events.
public onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event )
$event Symfony\Component\Security\Http\Event\InteractiveLoginEvent