public function ValidatorInterface::getMetadataFactory in Plug 7
Returns the factory for metadata instances.
@api
Return value
MetadataFactoryInterface The metadata factory.
Deprecated
Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Validator\ValidatorInterface::getMetadataFor()} or {@link Validator\ValidatorInterface::hasMetadataFor()} instead.
2 methods override ValidatorInterface::getMetadataFactory()
- LegacyValidator::getMetadataFactory in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ LegacyValidator.php - Returns the factory for metadata instances.
- Validator::getMetadataFactory in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator.php - Returns the factory for metadata instances.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorInterface.php, line 113
Class
- ValidatorInterface
- Validates values and graphs of objects and arrays.
Namespace
Symfony\Component\ValidatorCode
public function getMetadataFactory();