8000 [Validator] Fix the configuration for custom password strength estimator by stof · Pull Request #20476 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Fix the configuration for custom password strength estimator #20476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix the configuration for custom password strength estimator
  • Loading branch information
stof authored Dec 17, 2024
commit 8aeceab63ce821c69bb182377ad1c3c0b54bf17e
6 changes: 3 additions & 3 deletions reference/constraints/PasswordStrength.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ service to use your own estimator:
class: App\Validator\CustomPasswordStrengthEstimator

Symfony\Component\Validator\Constraints\PasswordStrengthValidator:
arguments: [!service_closure '@custom_password_strength_estimator']
arguments: [!closure '@custom_password_strength_estimator']

.. code-block:: xml

Expand All @@ -192,7 +192,7 @@ service to use your own estimator:
<service id="custom_password_strength_estimator" class="App\Validator\CustomPasswordStrengthEstimator"/>

<service id="Symfony\Component\Validator\Constraints\PasswordStrengthValidator">
<argument type="service_closure" id="custom_password_strength_estimator"/>
<argument type="closure" id="custom_password_strength_estimator"/>
</service>
</services>
</container>
Expand All @@ -210,5 +210,5 @@ service to use your own estimator:
$services->set('custom_password_strength_estimator', CustomPasswordStrengthEstimator::class);

$services->set(PasswordStrengthValidator::class)
->args([service_closure('custom_password_strength_estimator')]);
->args([closure('custom_password_strength_estimator')]);
};
Loading
0