public function __construct(ContextSnippetGenerator $generator, TranslatorInterface $translator) { $this->generator = $generator; $this->translator = $translator; }