public function ValidatorBuilderInterface::setMetadataFactory in Plug 7
Sets the class metadata factory used by the validator.
Parameters
MetadataFactoryInterface $metadataFactory The metadata factory:
Return value
ValidatorBuilderInterface The builder object
1 method overrides ValidatorBuilderInterface::setMetadataFactory()
- ValidatorBuilder::setMetadataFactory in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilder.php - Sets the class metadata factory used by the validator.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilderInterface.php, line 121
Class
- ValidatorBuilderInterface
- A configurable builder for ValidatorInterface objects.
Namespace
Symfony\Component\ValidatorCode
public function setMetadataFactory(MetadataFactoryInterface $metadataFactory);