You are here

public function JwtLoginSubscriber::__construct in Get JWT on Login 2.0.x

Same name and namespace in other branches
  1. 8 src/EventSubscriber/JwtLoginSubscriber.php \Drupal\getjwtonlogin\EventSubscriber\JwtLoginSubscriber::__construct()
  2. 1.0.x src/EventSubscriber/JwtLoginSubscriber.php \Drupal\getjwtonlogin\EventSubscriber\JwtLoginSubscriber::__construct()

Constructor with dependency injection

File

src/EventSubscriber/JwtLoginSubscriber.php, line 30

Class

JwtLoginSubscriber
Class JwtLoginSubscriber.

Namespace

Drupal\getjwtonlogin\EventSubscriber

Code

public function __construct($currentPath, $JwtAuth) {
  $this->currentPath = $currentPath;
  $this->jwtAuth = $JwtAuth;
}