[Translator] fix compat with translation-contracts v2

This commit is contained in:
Nicolas Grekas 2019-11-09 10:30:00 +01:00
parent 55559f48b5
commit 12a8b6937b
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class IdentityTranslator implements LegacyTranslatorInterface, TranslatorInterfa
{
use TranslatorTrait {
trans as private doTrans;
setLocale as private doSetLocale;
}
private $selector;
@ -45,6 +46,14 @@ class IdentityTranslator implements LegacyTranslatorInterface, TranslatorInterfa
return $this->doTrans($id, $parameters, $domain, $locale);
}
/**
* {@inheritdoc}
*/
public function setLocale($locale)
{
$this->doSetLocale($locale);
}
/**
* {@inheritdoc}
*