[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
This commit is contained in:
parent
81deedfc1b
commit
bc9817c85e
@ -148,6 +148,12 @@
|
|||||||
<tag name="form.type" alias="url" />
|
<tag name="form.type" alias="url" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!-- FieldTypeValidatorExtension -->
|
||||||
|
<service id="form.type_extension.field" class="Symfony\Component\Form\Extension\Validator\Type\FieldTypeValidatorExtension">
|
||||||
|
<tag name="form.type_extension" alias="field" />
|
||||||
|
<argument type="service" id="validator" />
|
||||||
|
</service>
|
||||||
|
|
||||||
<!-- CsrfExtension -->
|
<!-- CsrfExtension -->
|
||||||
<service id="form.type.csrf" class="Symfony\Component\Form\Extension\Csrf\Type\CsrfType">
|
<service id="form.type.csrf" class="Symfony\Component\Form\Extension\Csrf\Type\CsrfType">
|
||||||
<tag name="form.type" alias="csrf" />
|
<tag name="form.type" alias="csrf" />
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<class name="Symfony\Component\Form\Form">
|
<class name="Symfony\Component\Form\Form">
|
||||||
<constraint name="Callback">
|
<constraint name="Callback">
|
||||||
<value>
|
<value>
|
||||||
<value>Symfony\Component\Form\Extension\Core\Validator\DelegatingValidator</value>
|
<value>Symfony\Component\Form\Extension\Validator\Validator\DelegatingValidator</value>
|
||||||
<value>validateFormData</value>
|
<value>validateFormData</value>
|
||||||
</value>
|
</value>
|
||||||
</constraint>
|
</constraint>
|
||||||
|
Reference in New Issue
Block a user