public function LegacyExecutionContextFactory::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Context/LegacyExecutionContextFactory.php \Symfony\Component\Validator\Context\LegacyExecutionContextFactory::__construct()
Creates a new context factory.
Parameters
MetadataFactoryInterface $metadataFactory The metadata factory:
TranslatorInterface $translator The translator:
string|null $translationDomain The translation domain: to use for translating violation messages
File
- vendor/
symfony/ validator/ Context/ LegacyExecutionContextFactory.php, line 57
Class
- LegacyExecutionContextFactory
- Creates new {@link LegacyExecutionContext} instances.
Namespace
Symfony\Component\Validator\ContextCode
public function __construct(MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, $translationDomain = null) {
$this->metadataFactory = $metadataFactory;
$this->translator = $translator;
$this->translationDomain = $translationDomain;
}