File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ service to use your own estimator:
178
178
class : App\Validator\CustomPasswordStrengthEstimator
179
179
180
180
Symfony\Component\Validator\Constraints\PasswordStrengthValidator :
181
- arguments : [!service_closure '@custom_password_strength_estimator']
181
+ arguments : [!closure '@custom_password_strength_estimator']
182
182
183
183
.. code-block :: xml
184
184
@@ -192,7 +192,7 @@ service to use your own estimator:
192
192
<service id =" custom_password_strength_estimator" class =" App\Validator\CustomPasswordStrengthEstimator" />
193
193
194
194
<service id =" Symfony\Component\Validator\Constraints\PasswordStrengthValidator" >
195
- <argument type =" service_closure " id =" custom_password_strength_estimator" />
195
+ <argument type =" closure " id =" custom_password_strength_estimator" />
196
196
</service >
197
197
</services >
198
198
</container >
@@ -210,5 +210,5 @@ service to use your own estimator:
210
210
$services->set('custom_password_strength_estimator', CustomPasswordStrengthEstimator::class);
211
211
212
212
$services->set(PasswordStrengthValidator::class)
213
- ->args([service_closure ('custom_password_strength_estimator')]);
213
+ ->args([closure ('custom_password_strength_estimator')]);
214
214
};
You can’t perform that action at this time.
0 commit comments