Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 910a30c

Browse files
committed
minor symfony#12746 [Locale] Adding a deprecation note about the Locale component (rodrigobb)
This PR was squashed before being merged into the 2.7 branch (closes symfony#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 | symfony#12635 | License | MIT | Doc PR | - Commits ------- 5580a4f [Locale] Adding a deprecation note about the Locale component
2 parents b32395b + 5580a4f commit 910a30c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Locale/Locale.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Locale;
1313

14+
trigger_error('\Symfony\Component\Locale\Locale is deprecated since version 2.7, to be removed in Symfony 3.0. Use the methods provided by \Symfony\Component\Intl\Intl instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Icu\IcuData;
1517
use Symfony\Component\Intl\Intl;
1618

@@ -19,8 +21,8 @@
1921
*
2022
* @author Bernhard Schussek <[email protected]>
2123
*
22-
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
23-
* {@link \Locale} and {@link \Symfony\Component\Intl\Intl} instead.
24+
* @deprecated Deprecated since version 2.3, to be removed in 3.0.
25+
* Use {@link \Locale} and {@link \Symfony\Component\Intl\Intl} instead.
2426
*/
2527
class Locale extends \Locale
2628
{

0 commit comments

Comments
 (0)