function SystemTestController::__construct
Same name in other branches
- 8.9.x core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php \Drupal\system_test\Controller\SystemTestController::__construct()
- 10 core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php \Drupal\system_test\Controller\SystemTestController::__construct()
- 11.x 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\ControllerCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.