You are here

public static function EntryForm::create in Two-factor Authentication (TFA) 8

Creates service objects for the class constructor.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to get the required services.

Return value

static

Overrides FormBase::create

File

src/Form/EntryForm.php, line 115

Class

EntryForm
TFA entry form.

Namespace

Drupal\tfa\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('plugin.manager.tfa.validation'), $container
    ->get('plugin.manager.tfa.login'), $container
    ->get('flood'), $container
    ->get('date.formatter'), $container
    ->get('user.data'));
}