public function JwtLoginSubscriber::__construct in Get JWT on Login 2.0.x
Same name and namespace in other branches
- 8 src/EventSubscriber/JwtLoginSubscriber.php \Drupal\getjwtonlogin\EventSubscriber\JwtLoginSubscriber::__construct()
- 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\EventSubscriberCode
public function __construct($currentPath, $JwtAuth) {
$this->currentPath = $currentPath;
$this->jwtAuth = $JwtAuth;
}