You are here

public function JwtLoginSubscriber::__construct in Get JWT on Login 8

Same name and namespace in other branches
  1. 2.0.x 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 36

Class

JwtLoginSubscriber
Class ExampleLoginListener.

Namespace

Drupal\getjwtonlogin\EventSubscriber

Code

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