[Locale] Adding a deprecation note about the Locale component

This commit is contained in:
Rodrigo Borrego Bernabé 2014-11-29 14:55:48 +01:00 committed by Fabien Potencier
parent 57e97ba665
commit 5580a4f349

View File

@ -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;
@ -19,8 +21,8 @@ use Symfony\Component\Intl\Intl;
*
* @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
{