PHP Class Scheb\TwoFactorBundle\Security\TwoFactor\Voter

Inheritance: implements Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Show file Open project: scheb/two-factor-bundle

Protected Properties

Property Type Description
$providers string[]
$sessionFlagManager Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagManager

Public Methods

Method Description
__construct ( SessionFlagManager $sessionFlagManager, array $providers )
supportsAttribute ( string $attribute ) : boolean
supportsClass ( string $class ) : boolean
vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, mixed $object, array $attributes ) : mixed

Method Details

__construct() public method

public __construct ( SessionFlagManager $sessionFlagManager, array $providers )
$sessionFlagManager Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagManager
$providers array

supportsAttribute() public method

public supportsAttribute ( string $attribute ) : boolean
$attribute string
return boolean true

supportsClass() public method

public supportsClass ( string $class ) : boolean
$class string
return boolean true

vote() public method

public vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, mixed $object, array $attributes ) : mixed
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$object mixed
$attributes array
return mixed result

Property Details

$providers protected property

protected string[] $providers
return string[]

$sessionFlagManager protected property

protected SessionFlagManager,Scheb\TwoFactorBundle\Security\TwoFactor\Session $sessionFlagManager
return Scheb\TwoFactorBundle\Security\TwoFactor\Session\SessionFlagManager