[Form] fix post max size translation type extension for >= 2.8
This commit is contained in:
parent
f4dbd30a02
commit
a27ec00096
@ -193,7 +193,7 @@
|
||||
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\SubmitType" />
|
||||
</service>
|
||||
<service id="form.type_extension.upload.validator" class="Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension">
|
||||
<tag name="form.type_extension" alias="form" />
|
||||
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
|
||||
<argument type="service" id="translator"/>
|
||||
<argument type="string">%validator.translation_domain%</argument>
|
||||
</service>
|
||||
|
@ -53,6 +53,6 @@ class UploadValidatorExtension extends AbstractTypeExtension
|
||||
*/
|
||||
public function getExtendedType()
|
||||
{
|
||||
return 'form';
|
||||
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user