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
This commit is contained in:
commit
c68508f63c
@ -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