You are here

public function ExecutionContextFactory::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Context/ExecutionContextFactory.php \Symfony\Component\Validator\Context\ExecutionContextFactory::__construct()
  2. 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php \Drupal\Core\TypedData\Validation\ExecutionContextFactory::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Context/ExecutionContextFactory.php \Symfony\Component\Validator\Context\ExecutionContextFactory::__construct()

Creates a new context factory.

Parameters

TranslatorInterface $translator The translator:

string|null $translationDomain The translation domain to: use for translating violation messages

File

vendor/symfony/validator/Context/ExecutionContextFactory.php, line 47

Class

ExecutionContextFactory
Creates new {@link ExecutionContext} instances.

Namespace

Symfony\Component\Validator\Context

Code

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