public function __construct(TranslatorInterface $translator)
{
if (!$translator instanceof TranslatorBagInterface) {
- throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface and TranslatorBagInterface.', get_class($translator)));
+ throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface and TranslatorBagInterface.', \get_class($translator)));
}
$this->translator = $translator;
*/
public function __call($method, $args)
{
- return call_user_func_array(array($this->translator, $method), $args);
+ return \call_user_func_array(array($this->translator, $method), $args);
}
/**