Skip to content

Commit

Permalink
Fix the configuration for custom password strength estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Dec 17, 2024
1 parent 53ea654 commit 8aeceab
Showing 1 changed file with 3 additions and 3 deletions.
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')]);
};

0 comments on commit 8aeceab

Please sign in to comment.