Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContext::__construct PHP Method

__construct() public method

Construct a two-factor authentication context.
public __construct ( Request $request, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
    public function __construct(Request $request, TokenInterface $token)
    {
        $this->request = $request;
        $this->token = $token;
    }