feature #14120 Removed deprecation in translation component (saro0h)

This PR was merged into the 3.0-dev branch.

Discussion
----------

Removed deprecation in translation component

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Commits
-------

2220b90 Removed deprecation in translation component
This commit is contained in:
Abdellatif Ait boudad 2015-03-31 14:21:18 +01:00
commit 2669016f1b

View File

@ -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.
*