You are here

public function CSRFAccessCheck::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/lib/Drupal/Core/Access/CsrfAccessCheck.php \Drupal\Core\Access\CsrfAccessCheck::__construct()
  2. 8.0 core/modules/rest/src/Access/CSRFAccessCheck.php \Drupal\rest\Access\CSRFAccessCheck::__construct()
Same name and namespace in other branches
  1. 8 core/modules/rest/src/Access/CSRFAccessCheck.php \Drupal\rest\Access\CSRFAccessCheck::__construct()

Constructs a new rest CSRF access check.

Parameters

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

File

core/modules/rest/src/Access/CSRFAccessCheck.php, line 35
Contains \Drupal\rest\Access\CSRFAccessCheck.

Class

CSRFAccessCheck
Access protection against CSRF attacks.

Namespace

Drupal\rest\Access

Code

public function __construct(SessionConfigurationInterface $session_configuration) {
  $this->sessionConfiguration = $session_configuration;
}