public function ExecutionContextInterface::getMetadataFactory in Plug 7
Returns the used metadata factory.
Return value
MetadataFactoryInterface The metadata factory.
Deprecated
Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Context\ExecutionContextInterface::getValidator()} instead and call {@link Validator\ValidatorInterface::getMetadataFor()} or {@link Validator\ValidatorInterface::hasMetadataFor()} there.
2 methods override ExecutionContextInterface::getMetadataFactory()
- ExecutionContext::getMetadataFactory in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ExecutionContext.php - Returns the used metadata factory.
- ExecutionContext::getMetadataFactory in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContext.php - Returns the used metadata factory.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ExecutionContextInterface.php, line 264
Class
- ExecutionContextInterface
- Stores the validator's state during validation.
Namespace
Symfony\Component\ValidatorCode
public function getMetadataFactory();