You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This issue is part of the "SymfonyCon 2014 Madrid Hackday" effort to add logs for every 2.7 deprecated feature. This is needed before removing those features in 3.0 version. Please, add you name in a comment of this issue if you are going to work on this.
If you need it, this Gist explains how to generate the deprecation note:
The Locale component was removed and replaced by the Intl component.
Instead of the methods in Symfony\Component\Locale\Locale, you should use
these equivalent methods in Symfony\Component\Intl\Intl now:
…onent (rodrigobb)
This PR was squashed before being merged into the 2.7 branch (closes#12746).
Discussion
----------
[Locale] Adding a deprecation note about the Locale component
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #12635
| License | MIT
| Doc PR | -
Commits
-------
5580a4f [Locale] Adding a deprecation note about the Locale component
NOTE: This issue is part of the "SymfonyCon 2014 Madrid Hackday" effort to add logs for every 2.7 deprecated feature. This is needed before removing those features in 3.0 version. Please, add you name in a comment of this issue if you are going to work on this.
If you need it, this Gist explains how to generate the deprecation note:
https://gist.github.com/javiereguiluz/a5514ec6cde2a63be441
The Locale component was removed and replaced by the Intl component.
Instead of the methods in
Symfony\Component\Locale\Locale
, you should usethese equivalent methods in
Symfony\Component\Intl\Intl
now:Locale::getDisplayCountries()
Intl::getRegionBundle()->getCountryNames()
Locale::getCountries()
array_keys(Intl::getRegionBundle()->getCountryNames())
Locale::getDisplayLanguages()
Intl::getLanguageBundle()->getLanguageNames()
Locale::getLanguages()
array_keys(Intl::getLanguageBundle()->getLanguageNames())
Locale::getDisplayLocales()
Intl::getLocaleBundle()->getLocaleNames()
Locale::getLocales()
array_keys(Intl::getLocaleBundle()->getLocaleNames())
The text was updated successfully, but these errors were encountered: