public function ChecklistController::__construct in Security Review 8
Constructs a ChecklistController.
Parameters
\Drupal\Core\Access\CsrfTokenGenerator $csrf_token_generator: The CSRF Token generator.
\Drupal\security_review\SecurityReview $security_review: The security_review service.
\Drupal\security_review\Checklist $checklist: The security_review.checklist service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
- src/
Controller/ ChecklistController.php, line 59
Class
- ChecklistController
- The class of the 'Run & Review' page's controller.
Namespace
Drupal\security_review\ControllerCode
public function __construct(CsrfTokenGenerator $csrf_token_generator, SecurityReview $security_review, Checklist $checklist, MessengerInterface $messenger) {
$this->csrfToken = $csrf_token_generator;
$this->checklist = $checklist;
$this->securityReview = $security_review;
$this->messenger = $messenger;
}