You are here

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

Same name and namespace in other branches
  1. 8.0 modules/jwt_auth_issuer/src/EventSubscriber/JwtAuthIssuerSubscriber.php \Drupal\jwt_auth_issuer\EventSubscriber\JwtAuthIssuerSubscriber::__construct()

Constructor.

Parameters

\Drupal\Core\Session\AccountInterface $user: The current user.

File

modules/jwt_auth_issuer/src/EventSubscriber/JwtAuthIssuerSubscriber.php, line 30

Class

JwtAuthIssuerSubscriber
Class JwtAuthIssuerSubscriber.

Namespace

Drupal\jwt_auth_issuer\EventSubscriber

Code

public function __construct(AccountInterface $user) {
  $this->currentUser = $user;
}