You are here

public function SystemTestController::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php \Drupal\system_test\Controller\SystemTestController::__construct()

Constructs the SystemTestController.

Parameters

\Drupal\Core\Lock\LockBackendInterface $lock: The lock service.

\Drupal\Core\Lock\LockBackendInterface $persistent_lock: The persistent lock service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php, line 74

Class

SystemTestController
Controller routines for system_test routes.

Namespace

Drupal\system_test\Controller

Code

public function __construct(LockBackendInterface $lock, LockBackendInterface $persistent_lock, AccountInterface $current_user, RendererInterface $renderer, MessengerInterface $messenger) {
  $this->lock = $lock;
  $this->persistentLock = $persistent_lock;
  $this->currentUser = $current_user;
  $this->renderer = $renderer;
  $this->messenger = $messenger;
}