10000 [Form] fix post max size translation type extension for >= 2.8 · symfony/symfony@a27ec00 · GitHub
[go: up one dir, main page]

Skip to content

Commit a27ec00

Browse files
committed
[Form] fix post max size translation type extension for >= 2.8
1 parent f4dbd30 commit a27ec00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\SubmitType" />
194194
</service>
195195
<service id="form.type_extension.upload.validator" class="Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension">
196-
<tag name="form.type_extension" alias="form" />
196+
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
197197
<argument type="service" id="translator"/>
198198
<argument type="string">%validator.translation_domain%</argument>
199199
</service>

src/Symfony/Component/Form/Extension/Validator/Type/UploadValidatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ public function configureOptions(OptionsResolver $resolver)
5353
*/
5454
public function getExtendedType()
5555
{
56-
return 'form';
56+
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
5757
}
5858
}

0 commit comments

Comments
 (0)
0