This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Form/Tests
Nicolas Grekas 71687e03fb feature #32587 [Form][Validator] Generate accept attribute with file constraint and mime types option (Coosos)
This PR was squashed before being merged into the 4.4 branch (closes #32587).

Discussion
----------

[Form][Validator] Generate accept attribute with file constraint and mime types option

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes
| Fixed tickets | #29327
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Generate the html `accept` attribute based on the file constraint and mime types option.

Is it necessary to add this feature in the documentation ?

Made with @Timherlaud

_Sorry I have recreated this pull request because I missed my rebase_

Commits
-------

5a7b737ea3 [Form][Validator] Generate accept attribute with file constraint and mime types option
2019-07-24 16:41:38 +02:00
..
ChoiceList adapt tests 2019-07-22 22:38:49 +02:00
Command Show all option normalizers on debug:form command 2019-04-15 09:14:41 -04:00
Console/Descriptor fixed CS 2019-01-16 21:35:37 +01:00
DependencyInjection Merge branch '3.4' into 4.2 2019-07-19 18:57:10 +02:00
Extension feature #32587 [Form][Validator] Generate accept attribute with file constraint and mime types option (Coosos) 2019-07-24 16:41:38 +02:00
Fixtures Show all option normalizers on debug:form command 2019-04-15 09:14:41 -04:00
Guess switched array() to [] 2019-01-16 10:39:14 +01:00
Resources Enable the fixer enforcing fully-qualified calls for compiler-optimized functions 2018-07-24 12:05:38 +02:00
Util fixed short array CS in comments 2019-01-16 14:27:11 +01:00
AbstractDivLayoutTest.php Use willReturn() instead of will(returnValue()). 2019-05-30 17:47:52 +02:00
AbstractExtensionTest.php switched array() to [] 2019-01-16 10:39:14 +01:00
AbstractFormTest.php [Form] ensure compatibility with older PHPUnit mocks 2019-01-25 10:38:07 +01:00
AbstractLayoutTest.php adapt tests 2019-07-22 22:38:49 +02:00
AbstractRequestHandlerTest.php Use willReturn() instead of will(returnValue()). 2019-05-30 17:47:52 +02:00
AbstractTableLayoutTest.php Use willReturn() instead of will(returnValue()). 2019-05-30 17:47:52 +02:00
AbstractTypeExtensionTest.php simplify the form type extension registration 2018-10-08 23:29:09 +02:00
ButtonBuilderTest.php deprecate using invalid names for buttons 2019-02-04 19:38:43 +01:00
ButtonTest.php synchronise the form builder docblock 2019-01-22 15:49:00 +01:00
CallbackTransformerTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
CompoundFormPerformanceTest.php switched array() to [] 2019-01-16 10:39:14 +01:00
CompoundFormTest.php Merge branch '3.4' into 4.2 2019-05-30 18:06:08 +02:00
FormBuilderTest.php Merge branch '4.2' into 4.3 2019-05-30 18:10:05 +02:00
FormConfigTest.php Fine tune constructor types 2019-06-17 02:42:58 +01:00
FormErrorIteratorTest.php switched array() to [] 2019-01-16 10:39:14 +01:00
FormFactoryBuilderTest.php Merge branch '2.8' into 3.4 2018-07-26 10:45:46 +02:00
FormFactoryTest.php Use willReturn() instead of will(returnValue()). 2019-05-30 17:47:52 +02:00
FormRegistryTest.php switched array() to [] 2019-01-16 10:39:14 +01:00
FormRendererTest.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00
NativeRequestHandlerTest.php turn failed file uploads into form errors 2019-04-06 19:02:48 +02:00
ResolvedFormTypeTest.php Improved error message on create a form builder with invalid options 2019-06-03 15:21:10 -04:00
SimpleFormTest.php Merge branch '3.4' into 4.2 2019-05-30 18:06:08 +02:00
VersionAwareTest.php allow to skip tests based on the supported version 2019-02-14 15:58:36 +01:00