Skip to content

Commit

Permalink
[Form] Deprecated TimezoneType::getTimezones()
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Nov 26, 2015
1 parent da43309 commit 41df3fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UPGRADE-2.8.md
Expand Up @@ -251,6 +251,9 @@ Form
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
</service>
```

* The `TimezoneType::getTimezones()` method was deprecated and will be removed
in Symfony 3.0. You should not use this method.

Translator
----------
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-3.0.md
Expand Up @@ -311,6 +311,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

Expand Down
Expand Up @@ -67,9 +67,13 @@ public function getBlockPrefix()
* 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();

Expand Down

0 comments on commit 41df3fc

Please sign in to comment.