function UserAuth::__construct
Same name in other branches
- 9 core/modules/user/src/UserAuth.php \Drupal\user\UserAuth::__construct()
- 8.9.x core/modules/user/src/UserAuth.php \Drupal\user\UserAuth::__construct()
- 11.x 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\userCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, PasswordInterface $password_checker) {
@trigger_error(__CLASS__ . ' is deprecated in drupal:10.3.0 and will be removed from drupal:12.0.0. Implement \\Drupal\\user\\UserAuthenticationInterface instead. See https://www.drupal.org/node/3411040');
$this->entityTypeManager = $entity_type_manager;
$this->passwordChecker = $password_checker;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.