You are here

public function Cookie::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::__construct()

Constructs a new cookie authentication provider.

Parameters

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

\Drupal\Core\Database\Connection $connection: The database connection.

File

core/modules/user/src/Authentication/Provider/Cookie.php, line 40

Class

Cookie
Cookie based authentication provider.

Namespace

Drupal\user\Authentication\Provider

Code

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