14 files declare their use of CsrfTokenGenerator

AjaxBasePageNegotiator.php in core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php
AjaxBasePageNegotiatorTest.php in core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php
BatchStorage.php in core/lib/Drupal/Core/Batch/BatchStorage.php
CsrfTokenController.php in core/modules/system/src/Controller/CsrfTokenController.php
CsrfTokenGeneratorTest.php in core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
DeprecatedCsrfTokenController.php in core/modules/system/tests/modules/csrf_test/src/Controller/DeprecatedCsrfTokenController.php
FormBuilder.php in core/lib/Drupal/Core/Form/FormBuilder.php
FormCache.php in core/lib/Drupal/Core/Form/FormCache.php
FormValidator.php in core/lib/Drupal/Core/Form/FormValidator.php
MachineNameController.php in core/modules/system/src/MachineNameController.php
MachineNameControllerTest.php in core/modules/system/tests/src/Unit/Transliteration/MachineNameControllerTest.php
MachineNameTest.php in core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
TestController.php in core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php
UserAuthenticationController.php in core/modules/user/src/Controller/UserAuthenticationController.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.