CodeExplorer createTranslatable example
$this->translator =
new class() implements TranslatorInterface
{ use TranslatorTrait;
};
} return $this->translator;
} public function getFunctions(): array
{ return [ new TwigFunction('t',
$this->
createTranslatable(...
)),
];
} public function getFilters(): array
{ return [ new TwigFilter('trans',
$this->
trans(...
)),
];
} public function getTokenParsers(): array
{