You are here

public function KeyAuth::__construct in Key auth 8

Same name in this branch
  1. 8 src/KeyAuth.php \Drupal\key_auth\KeyAuth::__construct()
  2. 8 src/Authentication/Provider/KeyAuth.php \Drupal\key_auth\Authentication\Provider\KeyAuth::__construct()

Constructs a key authentication provider object.

Parameters

\Drupal\key_auth\KeyAuthInterface $key_auth: The key auth service.

File

src/Authentication/Provider/KeyAuth.php, line 27

Class

KeyAuth
Key authentication provider.

Namespace

Drupal\key_auth\Authentication\Provider

Code

public function __construct(KeyAuthInterface $key_auth) {
  $this->keyAuth = $key_auth;
}