You are here

public function LockrRenewForm::__construct in Lockr 4.x

Constructs a new LockrRenewForm.

Parameters

LockrClient $lockr_client: The Lockr library client.

CertManager $cert_manager: The Lockr cert manager.

TranslationInterface $translation: The Drupal translator.

StreamWrapperManagerInterface $stream_wrapper_manager: The Drupal stream wrapper manager.

MessengerInterface $messenger: The Drupal messenger.

LoggerChannelFactoryInterface $logger_factory: The Drupal logger factory.

Settings $settings: The Drupal site settings.

File

src/Form/LockrRenewForm.php, line 93

Class

LockrRenewForm
Form handler for Lockr renew cert.

Namespace

Drupal\lockr\Form

Code

public function __construct(LockrClient $lockr_client, CertManager $cert_manager, TranslationInterface $translation, StreamWrapperManagerInterface $stream_wrapper_manager, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, Settings $settings) {
  $this->lockrClient = $lockr_client;
  $this->certManager = $cert_manager;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->messenger = $messenger;
  $this->logger = $logger_factory
    ->get('lockr');
  $this->settings = $settings;
  $this
    ->setStringTranslation($translation);
}