You are here

public function PendingPersistentLogin::__construct in Persistent Login 8

Instantiates a new PendingPersistentLogin object.

Parameters

\Drupal\persistent_login\CookieHelperInterface $cookie_helper: The cookie helper service.

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

File

src/PageCache/RequestPolicy/PendingPersistentLogin.php, line 37

Class

PendingPersistentLogin
A policy preventing caching of pages with pending persistent login cookies.

Namespace

Drupal\persistent_login\PageCache\RequestPolicy

Code

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