Scheb\TwoFactorBundle\Security\TwoFactor\Voter::vote PHP Метод

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

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
Результат mixed result
    public function vote(TokenInterface $token, $object, array $attributes)
    {
        foreach ($this->providers as $providerName) {
            if ($this->sessionFlagManager->isNotAuthenticated($providerName, $token)) {
                return VoterInterface::ACCESS_DENIED;
            }
        }
        return VoterInterface::ACCESS_ABSTAIN;
    }