protected function ValidatorTest::createValidator in Plug 7
Parameters
MetadataFactoryInterface $metadataFactory:
Return value
LegacyValidatorInterface
Overrides AbstractLegacyApiTest::createValidator
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ ValidatorTest.php, line 24
Class
Namespace
Symfony\Component\Validator\TestsCode
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
return new LegacyValidator($metadataFactory, new ConstraintValidatorFactory(), new DefaultTranslator(), 'validators', $objectInitializers);
}