public create ( |
||
$request | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface |
public function create(Request $request, TokenInterface $token)
{
return new $this->authenticationContextClass($request, $token);
}
/** * @test */ public function create_onCreate_returnAuthenticationContext() { $this->assertInstanceOf('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\AuthenticationContext', $this->authenticationContextFactory->create($this->request, $this->token)); }