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
Fabien Potencier fef2bd4812 feature #12891 [Form] Deprecated setDefaultOptions() in favor of configureOptions() (peterrehm)
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] Deprecated setDefaultOptions() in favor of configureOptions()

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   |
| Fixed tickets | #12782
| License       | MIT
| Doc PR        | symfony/symfony-docs#4786

This tries to provide a compatible API with the depreciation of the OptionResolverInterface. I would like to have this in 2.6.2 but I think that might not be possible? To me I think we should always provide an API where you do not need to use deprecated classes.

Also can you think of any way to trigger errors on the use of the deprecated setDefaultOptions() method? Since it is usually overwritten without calling the parent class this might be tricky. Maybe only in the resolver if we can check if actual options has been resolved in a call to setDefaultOptions.

Commits
-------

3d43cae Deprecated setDefaultOptions() in favor of configureOptions()
2015-01-18 15:06:44 +01:00
..
BrowserKit bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
ClassLoader bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Config bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Console Merge branch '2.6' into 2.7 2015-01-15 13:16:13 +01:00
CssSelector bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Debug Merge branch '2.6' into 2.7 2015-01-16 15:55:54 +01:00
DependencyInjection [FrameworkBundle] remove usage of deprecated Definition::setFactoryClass(), Definition::setFactoryService() and Definition::setFactoryMethod() methods. 2015-01-16 19:49:13 +01:00
DomCrawler removed code for PHP < 5.3.9 2015-01-09 14:24:18 +01:00
EventDispatcher feature #13418 [DX] Attempt to improve logging messages with parameters (iltar) 2015-01-16 16:11:56 +01:00
ExpressionLanguage bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Filesystem bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Finder bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Form feature #12891 [Form] Deprecated setDefaultOptions() in favor of configureOptions() (peterrehm) 2015-01-18 15:06:44 +01:00
HttpFoundation Merge branch '2.6' into 2.7 2015-01-15 13:16:13 +01:00
HttpKernel feature #13418 [DX] Attempt to improve logging messages with parameters (iltar) 2015-01-16 16:11:56 +01:00
Intl removed code for PHP < 5.3.9 2015-01-09 14:24:18 +01:00
Locale bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
OptionsResolver bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Process bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
PropertyAccess Merge branch '2.6' into 2.7 2015-01-09 19:07:24 +01:00
Routing Merge branch '2.6' into 2.7 2015-01-15 13:16:13 +01:00
Security [DX] Attempt to improve logging messages with parameters 2015-01-16 16:11:12 +01:00
Serializer bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Stopwatch bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Templating [DX] Attempt to improve logging messages with parameters 2015-01-16 16:11:12 +01:00
Translation bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01:00
Validator [Validator] fixed some legacy tests 2015-01-16 18:23:24 +01:00
VarDumper Merge branch '2.6' into 2.7 2015-01-15 13:16:13 +01:00
Yaml Merge branch '2.6' into 2.7 2015-01-16 15:55:54 +01:00