You are here

public function TfaSetup::__construct in Two-factor Authentication (TFA) 7.2

TFA Setup constructor.

Parameters

TfaBasePlugin $setup_plugin: Plugin being set up.

array $context: Context of TFA process. Must include key:

  • 'uid' Account uid of user in TFA process.

File

./tfa.inc, line 337
TFA module classes.

Class

TfaSetup
Class TfaSetup.

Code

public function __construct(TfaBasePlugin $setup_plugin, array $context) {
  $this->setupPlugin = $setup_plugin;
  $this->context = $context;
}