CsrfRequestHeaderAccessCheck::__construct

public CsrfRequestHeaderAccessCheck::__construct(SessionConfigurationInterface $session_configuration, CsrfTokenGenerator $csrf_token)

Constructs a new rest CSRF access check.

Parameters

\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration.

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The token generator.

File

core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php, line 42

Class

CsrfRequestHeaderAccessCheck
Access protection against CSRF attacks.

Namespace

Drupal\Core\Access

Code

public function __construct(SessionConfigurationInterface $session_configuration, CsrfTokenGenerator $csrf_token) {
  $this->sessionConfiguration = $session_configuration;
  $this->csrfToken = $csrf_token;
}
doc_Drupal
2016-10-29 08:59:11
Comments
Leave a Comment

Please login to continue.