Skip to content

Commit

Permalink
Removed deprecation in translation component
Browse files Browse the repository at this point in the history
  • Loading branch information
saro0h committed Mar 30, 2015
1 parent 5f42822 commit 2220b90
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Symfony/Component/Translation/Translator.php
Expand Up @@ -147,24 +147,6 @@ public function getLocale()
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.
*
Expand Down

0 comments on commit 2220b90

Please sign in to comment.