You are here

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

Same name and namespace in other branches
  1. 8.0 src/Authentication/Event/JwtAuthBaseEvent.php \Drupal\jwt\Authentication\Event\JwtAuthBaseEvent::__construct()

Constructs a JwtAuthEvent with a JsonWebToken.

Parameters

\Drupal\jwt\JsonWebToken\JsonWebTokenInterface $token: A decoded JWT.

1 call to JwtAuthBaseEvent::__construct()
JwtAuthValidEvent::__construct in src/Authentication/Event/JwtAuthValidEvent.php
Constructs a JwtAuthEvent with a JsonWebToken.
1 method overrides JwtAuthBaseEvent::__construct()
JwtAuthValidEvent::__construct in src/Authentication/Event/JwtAuthValidEvent.php
Constructs a JwtAuthEvent with a JsonWebToken.

File

src/Authentication/Event/JwtAuthBaseEvent.php, line 27

Class

JwtAuthBaseEvent
Class JwtAuthBaseEvent.

Namespace

Drupal\jwt\Authentication\Event

Code

public function __construct(JsonWebTokenInterface $token) {
  $this->jwt = $token;
}