You are here

public function LockrAdminController::__construct in Lockr 8.3

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

Constructs a new LockrAdminForm.

Parameters

Lockr $lockr: The Lockr library client.

SettingsFactory $settings_factory: The Lockr settings factory.

ConfigFactoryInterface $config_factory: The simple config factory.

FormBuilderInterface $form_builder: The Drupal form builder.

StreamWrapperManagerInterface: The Drupal stream wrapper manager.

MessengerInterface $messenger: The Drupal messenger.

TranslationInterface $translation: The Drupal translator.

string $drupal_root: The Drupal site root.

File

src/Controller/LockrAdminController.php, line 98

Class

LockrAdminController
Controller for the Lockr admin status and configuration page.

Namespace

Drupal\lockr\Controller

Code

public function __construct(Lockr $lockr, SettingsFactory $settings_factory, ConfigFactoryInterface $config_factory, FormBuilderInterface $form_builder, StreamWrapperManagerInterface $stream_wrapper_manager, MessengerInterface $messenger, TranslationInterface $translation, $drupal_root) {
  $this->lockr = $lockr;
  $this->settingsFactory = $settings_factory;
  $this->configFactory = $config_factory;
  $this->formBuilder = $form_builder;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->messenger = $messenger;
  $this->drupalRoot = $drupal_root;
  $this
    ->setStringTranslation($translation);
}