public function Validator::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator.php \Symfony\Component\Validator\Validator::__construct()
File
- vendor/
symfony/ validator/ Validator.php, line 56
Class
- Validator
- Default implementation of {@link ValidatorInterface}.
Namespace
Symfony\Component\ValidatorCode
public function __construct(MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, TranslatorInterface $translator, $translationDomain = 'validators', array $objectInitializers = array()) {
$this->metadataFactory = $metadataFactory;
$this->validatorFactory = $validatorFactory;
$this->translator = $translator;
$this->translationDomain = $translationDomain;
$this->objectInitializers = $objectInitializers;
}