You are here

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

ValidatorTest

Namespace

Symfony\Component\Validator\Tests

Code

protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
  return new LegacyValidator($metadataFactory, new ConstraintValidatorFactory(), new DefaultTranslator(), 'validators', $objectInitializers);
}