public function TestController::__construct in Drupal 10
Same name in this branch
- 10 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::__construct()
- 10 core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::__construct()
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::__construct()
- 9 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::__construct()
Controller constructor.
File
- core/
modules/ system/ tests/ modules/ csrf_race_test/ src/ Controller/ TestController.php, line 34
Class
- TestController
- Controller to test concurrent CSRF token generation.
Namespace
Drupal\csrf_race_test\ControllerCode
public function __construct(CsrfTokenGenerator $token_generator) {
$this->tokenGenerator = $token_generator;
}