[Validator] Fixed failing CsrfFormLoginTest
This commit is contained in:
parent
0bfde4a44b
commit
b1badeaa1f
@ -694,7 +694,7 @@ class FrameworkExtension extends Extension
|
||||
$definition->replaceArgument(0, $config['strict_email']);
|
||||
|
||||
if (array_key_exists('enable_annotations', $config) && $config['enable_annotations']) {
|
||||
$validatorBuilder->addMethodCall('enableAnnotations', array(new Reference('annotation_reader')));
|
||||
$validatorBuilder->addMethodCall('enableAnnotationMapping', array(new Reference('annotation_reader')));
|
||||
}
|
||||
|
||||
if (array_key_exists('static_method', $config) && $config['static_method']) {
|
||||
|
@ -18,7 +18,7 @@
|
||||
<services>
|
||||
<service id="validator" class="%validator.class%" factory-service="validator.builder" factory-method="getValidator" />
|
||||
|
||||
<service id="validator.builder" class="%validator.builder.class%" factory-class="%validator.builder.factory.class%" factory-method="createValidatorBuilder" public="false">
|
||||
<service id="validator.builder" class="%validator.builder.class%" factory-class="%validator.builder.factory.class%" factory-method="createValidatorBuilder">
|
||||
<call method="setConstraintValidatorFactory">
|
||||
<argument type="service" id="validator.validator_factory" />
|
||||
</call>
|
||||
|
Reference in New Issue
Block a user