You are here

public function UserAuth::__construct in Zircon Profile 8

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

Constructs a UserAuth object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

File

core/modules/user/src/UserAuth.php, line 40
Contains \Drupal\user\UserAuth.

Class

UserAuth
Validates user authentication credentials.

Namespace

Drupal\user

Code

public function __construct(EntityManagerInterface $entity_manager, PasswordInterface $password_checker) {
  $this->entityManager = $entity_manager;
  $this->passwordChecker = $password_checker;
}