public function __construct(TranslatorInterface $translator, $translationDomain = NULL) {
$this->translator = $translator;
$this->translationDomain = $translationDomain;
}
/**
* {@inheritdoc}
*/
public function createContext(ValidatorInterface $validator, $root): ExecutionContextInterface {
return new ExecutionContext(
$validator,
$root,
$this->translator,
$this->translationDomain
);
}
}