By dww on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.2.x
Introduced in version:
9.2.0
Issue links:
Description:
The UserPasswordForm now requires two additional injected services, the typed data manager and the email validator. \Drupal\user\Form\UserPasswordForm::__construct() requires these two new parameters:
* @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager
* The typed data manager.
* @param \Drupal\Component\Utility\EmailValidatorInterface $email_validator
* The email validator service.
If your code is instantiating this class directly, without using the create() method, your code is probably doing it wrong. But in this case, you should add these two additional services. Between 9.2.x and 10.0.x the form will trigger a deprecation notice, but starting in 10.0.0, the fallback behavior to look up the services for you will be removed.
Impacts:
Module developers