You are here

public function UserAuth::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/UserAuth.php \Drupal\user\UserAuth::__construct()
  2. 9 core/modules/user/src/UserAuth.php \Drupal\user\UserAuth::__construct()

Constructs a UserAuth object.

Parameters

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

\Drupal\Core\Password\PasswordInterface $password_checker: The password service.

File

core/modules/user/src/UserAuth.php, line 35

Class

UserAuth
Validates user authentication credentials.

Namespace

Drupal\user

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, PasswordInterface $password_checker) {
  $this->entityTypeManager = $entity_type_manager;
  $this->passwordChecker = $password_checker;
}