Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:7.2fromstof:patch-1
Dec 17, 2024
Merged
Changes fromall 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
6 changes: 3 additions & 3 deletionsreference/constraints/PasswordStrength.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp