You are here

public function TokenHandler::__construct in Persistent Login 8

Construct a token manager object.

Parameters

\Drupal\persistent_login\TokenManager $token_manager: The token manager service.

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

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager service.

File

src/EventSubscriber/TokenHandler.php, line 73

Class

TokenHandler
Class TokenHandler.

Namespace

Drupal\persistent_login\EventSubscriber

Code

public function __construct(TokenManager $token_manager, CookieHelperInterface $cookie_helper, SessionConfigurationInterface $session_configuration, EntityTypeManagerInterface $entity_type_manager) {
  $this->tokenManager = $token_manager;
  $this->cookieHelper = $cookie_helper;
  $this->sessionConfiguration = $session_configuration;
  $this->entityTypeManager = $entity_type_manager;
}