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 new KeyAuth object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

File

src/KeyAuth.php, line 53

Class

KeyAuth
Class KeyAuth.

Namespace

Drupal\key_auth

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->config = $config_factory
    ->get('key_auth.settings');
  $this->entityTypeManager = $entity_type_manager;
}