public function ExecutionContextFactory::__construct in Plug 7
Creates a new context factory.
Parameters
TranslatorInterface $translator The translator:
string|null $translationDomain The translation domain to: use for translating violation messages
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContextFactory.php, line 46
Class
- ExecutionContextFactory
- Creates new {@link ExecutionContext} instances.
Namespace
Symfony\Component\Validator\ContextCode
public function __construct(TranslatorInterface $translator, $translationDomain = null) {
$this->translator = $translator;
$this->translationDomain = $translationDomain;
}