public function JwtAuthIssuerSubscriber::__construct in JSON Web Token Authentication (JWT) 8.0
Same name and namespace in other branches
- 8 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\EventSubscriberCode
public function __construct(AccountInterface $user) {
$this->currentUser = $user;
}