protected function RecursiveValidator2Dot5ApiTest::createValidator in Plug 7
Parameters
MetadataFactoryInterface $metadataFactory:
Return value
ValidatorInterface
Overrides Abstract2Dot5ApiTest::createValidator
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ RecursiveValidator2Dot5ApiTest.php, line 22
Class
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
$contextFactory = new ExecutionContextFactory(new DefaultTranslator());
$validatorFactory = new ConstraintValidatorFactory();
return new RecursiveValidator($contextFactory, $metadataFactory, $validatorFactory, $objectInitializers);
}