[Translator] fix compat with translation-contracts v2
This commit is contained in:
parent
55559f48b5
commit
12a8b6937b
@ -24,6 +24,7 @@ class IdentityTranslator implements LegacyTranslatorInterface, TranslatorInterfa
|
|||||||
{
|
{
|
||||||
use TranslatorTrait {
|
use TranslatorTrait {
|
||||||
trans as private doTrans;
|
trans as private doTrans;
|
||||||
|
setLocale as private doSetLocale;
|
||||||
}
|
}
|
||||||
|
|
||||||
private $selector;
|
private $selector;
|
||||||
@ -45,6 +46,14 @@ class IdentityTranslator implements LegacyTranslatorInterface, TranslatorInterfa
|
|||||||
return $this->doTrans($id, $parameters, $domain, $locale);
|
return $this->doTrans($id, $parameters, $domain, $locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function setLocale($locale)
|
||||||
|
{
|
||||||
|
$this->doSetLocale($locale);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user