Skip to content

Commit ce4c106

Browse files
committed
bug #19061 [FORM] fix post_max_size_message translation (alt. 2) (David Badura)
This PR was merged into the 2.7 branch. Discussion ---------- [FORM] fix post_max_size_message translation (alt. 2) | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15479, #18543 | License | MIT | Doc PR | - Commits ------- 9d8a5e5 fix post_max_size_message translation
2 parents 4b46b71 + 492370c commit ce4c106

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Resources/config/form.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,10 @@
189189
<service id="form.type_extension.submit.validator" class="Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension">
190190
<tag name="form.type_extension" alias="submit" />
191191
</service>
192+
<service id="form.type_extension.upload.validator" class="Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension">
193+
<tag name="form.type_extension" alias="form" />
194+
<argument type="service" id="translator"/>
195+
<argument type="string">%validator.translation_domain%</argument>
196+
</service>
192197
</services>
193198
</container>

0 commit comments

Comments
 (0)