protected function LegacyValidatorLegacyApiTest::createValidator in Plug 7
Parameters
MetadataFactoryInterface $metadataFactory:
Return value
LegacyValidatorInterface
Overrides AbstractLegacyApiTest::createValidator
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ LegacyValidatorLegacyApiTest.php, line 34
Class
- LegacyValidatorLegacyApiTest
- @group legacy
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
$contextFactory = new LegacyExecutionContextFactory($metadataFactory, new DefaultTranslator());
$validatorFactory = new ConstraintValidatorFactory();
return new LegacyValidator($contextFactory, $metadataFactory, $validatorFactory, $objectInitializers);
}