8000 bug #19211 [Form] fix post max size translation type extension for >=… · symfony/symfony@c68508f · GitHub
[go: up one dir, main page]

Skip to content

Commit c68508f

Browse files
committed
bug #19211 [Form] fix post max size translation type extension for >= 2.8 (Tobion)
This PR was merged into the 2.8 branch. Discussion ---------- [Form] fix post max size translation type extension for >= 2.8 | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? |no | Tests pass? | yes | Fixed tickets | #19210, #19061 | License | MIT | Doc PR | Commits ------- a27ec00 [Form] fix post max size translation type extension for >= 2.8
2 parents f4dbd30 + a27ec00 commit c68508f

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