public function LockrRegisterForm::__construct in Lockr 8.3
Same name and namespace in other branches
- 8.4 src/Form/LockrRegisterForm.php \Drupal\lockr\Form\LockrRegisterForm::__construct()
- 8.2 src/Form/LockrRegisterForm.php \Drupal\lockr\Form\LockrRegisterForm::__construct()
- 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\FormCode
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);
}