[Form] Deprecated TimezoneType::getTimezones()
This commit is contained in:
parent
da43309f07
commit
41df3fce32
|
@ -252,6 +252,9 @@ Form
|
|||
</service>
|
||||
```
|
||||
|
||||
* The `TimezoneType::getTimezones()` method was deprecated and will be removed
|
||||
in Symfony 3.0. You should not use this method.
|
||||
|
||||
Translator
|
||||
----------
|
||||
|
||||
|
|
|
@ -312,6 +312,9 @@ UPGRADE FROM 2.x to 3.0
|
|||
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
|
||||
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
|
||||
|
||||
* The `TimezoneType::getTimezones()` method was removed. You should not use
|
||||
this method.
|
||||
|
||||
### FrameworkBundle
|
||||
|
||||
* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`
|
||||
|
|
|
@ -67,9 +67,13 @@ class TimezoneType extends AbstractType
|
|||
* overhead.
|
||||
*
|
||||
* @return array The timezone choices
|
||||
*
|
||||
* @deprecated Deprecated since version 2.8
|
||||
*/
|
||||
public static function getTimezones()
|
||||
{
|
||||
@trigger_error('The TimezoneType::getTimezones() method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||
|
||||
if (null === static::$timezones) {
|
||||
static::$timezones = array();
|
||||
|
||||
|
|
Reference in New Issue