You are here

public function TokenManager::__construct in Persistent Login 8

Construct a token manager object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

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

\Psr\Log\LoggerInterface $logger: The logger channel.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/TokenManager.php, line 70

Class

TokenManager
Class TokenManager.

Namespace

Drupal\persistent_login

Code

public function __construct(Connection $connection, ConfigFactoryInterface $configFactory, CsrfTokenGenerator $csrfToken, LoggerInterface $logger, TimeInterface $time) {
  $this->configFactory = $configFactory;
  $this->connection = $connection;
  $this->csrfToken = $csrfToken;
  $this->logger = $logger;
  $this->time = $time;
}