You are here

public function LockrRegisterForm::__construct in Lockr 8.3

Same name and namespace in other branches
  1. 8.4 src/Form/LockrRegisterForm.php \Drupal\lockr\Form\LockrRegisterForm::__construct()
  2. 8.2 src/Form/LockrRegisterForm.php \Drupal\lockr\Form\LockrRegisterForm::__construct()
  3. 4.x src/Form/LockrRegisterForm.php \Drupal\lockr\Form\LockrRegisterForm::__construct()

Constructs a new LockrRegisterForm.

Parameters

Lockr $lockr: The Lockr library client.

SettingsFactory $settings_factory: The settings factory.

ConfigFactoryInterface $config_factory: The simple config factory.

MessengerInterface $messenger: The Drupal messenger.

TranslationInterface $translation: The Drupal translator.

File

src/Form/LockrRegisterForm.php, line 69

Class

LockrRegisterForm
Form handler for Lockr registration.

Namespace

Drupal\lockr\Form

Code

public function __construct(Lockr $lockr, SettingsFactory $settings_factory, ConfigFactoryInterface $config_factory, MessengerInterface $messenger, TranslationInterface $translation) {
  $this->lockr = $lockr;
  $this->settingsFactory = $settings_factory;
  $this->configFactory = $config_factory;
  $this->messenger = $messenger;
  $this
    ->setStringTranslation($translation);
}