[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
This commit is contained in:
parent
81deedfc1b
commit
bc9817c85e
@ -21,7 +21,7 @@
|
|||||||
<!--
|
<!--
|
||||||
We don't need to be able to add more extensions.
|
We don't need to be able to add more extensions.
|
||||||
* more types can be registered with the form.type tag
|
* more types can be registered with the form.type tag
|
||||||
* more type_guessers can be registered with the form.type.type_guesser tag
|
* more type_guessers can be registered with the form.type.type_guesser tag
|
||||||
-->
|
-->
|
||||||
<argument type="service" id="form.extension" />
|
<argument type="service" id="form.extension" />
|
||||||
</argument>
|
</argument>
|
||||||
@ -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