You are here

public function ToggleController::__construct in Security Review 8

Constructs a ToggleController.

Parameters

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token_generator: The CSRF Token generator.

\Symfony\Component\HttpFoundation\RequestStack $request: The request stack.

\Drupal\security_review\Checklist $checklist: The security_review.checklist service.

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

File

src/Controller/ToggleController.php, line 52

Class

ToggleController
Responsible for handling the toggle links on the Run & Review page.

Namespace

Drupal\security_review\Controller

Code

public function __construct(CsrfTokenGenerator $csrf_token_generator, RequestStack $request, Checklist $checklist, MessengerInterface $messenger) {
  $this->checklist = $checklist;
  $this->csrfToken = $csrf_token_generator;
  $this->request = $request
    ->getCurrentRequest();
  $this->messenger = $messenger;
}