Skip to content

Commit

Permalink
[Locale] Adding a deprecation note about the Locale component
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobb authored and fabpot committed Nov 30, 2014
1 parent 57e97ba commit 5580a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Symfony/Component/Locale/Locale.php
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Component\Locale;

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);

use Symfony\Component\Icu\IcuData;
use Symfony\Component\Intl\Intl;

Expand All @@ -19,8 +21,8 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
* {@link \Locale} and {@link \Symfony\Component\Intl\Intl} instead.
* @deprecated Deprecated since version 2.3, to be removed in 3.0.
* Use {@link \Locale} and {@link \Symfony\Component\Intl\Intl} instead.
*/
class Locale extends \Locale
{
Expand Down

0 comments on commit 5580a4f

Please sign in to comment.