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:
commit
2669016f1b
@ -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