You are here

public function UsersJwtKeyRepository::__construct in JSON Web Token Authentication (JWT) 8

UsersJwtKeyRepository constructor.

Parameters

\Drupal\user\UserDataInterface $user_data: The user data service.

\Drupal\Core\Cache\CacheBackendInterface $key_memory_cache: A cache for already loaded keys, usually a memory cache (or null cache).

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: Cache tags invalidator service.

File

modules/users_jwt/src/UsersJwtKeyRepository.php, line 54

Class

UsersJwtKeyRepository
Class UsersJwtKeyRepository

Namespace

Drupal\users_jwt

Code

public function __construct(UserDataInterface $user_data, CacheBackendInterface $key_memory_cache, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  $this->userData = $user_data;
  $this->keyCache = $key_memory_cache;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}