Removed deprecation in translation component
This commit is contained in:
parent
5f42822f3b
commit
2220b90579
@ -147,24 +147,6 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
|
||||
return $this->locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fallback locale(s).
|
||||
*
|
||||
* @param string|array $locales The fallback locale(s)
|
||||
*
|
||||
* @throws \InvalidArgumentException If a locale contains invalid characters
|
||||
*
|
||||
* @deprecated since version 2.3, to be removed in 3.0. Use setFallbackLocales() instead.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function setFallbackLocale($locales)
|
||||
{
|
||||
trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the setFallbackLocales() method instead.', E_USER_DEPRECATED);
|
||||
|
||||
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fallback locales.
|
||||
*
|
||||
|
Reference in New Issue
Block a user