[Form] fix post max size translation type extension for >= 2.8

This commit is contained in:
Tobias Schultze 2016-06-29 00:32:04 +02:00
parent f4dbd30a02
commit a27ec00096
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -53,6 +53,6 @@ class UploadValidatorExtension extends AbstractTypeExtension
*/
public function getExtendedType()
{
return 'form';
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
}
}