File tree 3 files changed +10
-0
lines changed
src/Symfony/Component/Form/Extension/Core/Type
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 251
251
<tag name =" form.type_extension" extended-type =" Symfony\Component\Form\Extension\Core\Type\TextType" />
252
252
</service >
253
253
```
254
+
255
+ * The ` TimezoneType::getTimezones() ` method was deprecated and will be removed
256
+ in Symfony 3.0. You should not use this method.
254
257
255
258
Translator
256
259
----------
Original file line number Diff line number Diff line change @@ -311,6 +311,9 @@ UPGRADE FROM 2.x to 3.0
311
311
312
312
* The ` Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList ` class has been removed in
313
313
favor of ` Symfony\Component\Form\ChoiceList\ArrayChoiceList ` .
314
+
315
+ * The ` TimezoneType::getTimezones() ` method was removed. You should not use
316
+ this method.
314
317
315
318
### FrameworkBundle
316
319
Original file line number Diff line number Diff line change @@ -67,9 +67,13 @@ public function getBlockPrefix()
67
67
* overhead.
68
68
*
69
69
* @return array The timezone choices
70
+ *
71
+ * @deprecated Deprecated since version 2.8
70
72
*/
71
73
public static function getTimezones ()
72
74
{
75
+ @trigger_error ('The TimezoneType::getTimezones() method is deprecated since version 2.8 and will be removed in 3.0. ' , E_USER_DEPRECATED );
76
+
73
77
if (null === static ::$ timezones ) {
74
78
static ::$ timezones = array ();
75
79
You can’t perform that action at this time.
0 commit comments