public function LegacyExecutionContext::getMetadataFactory in Plug 7
Returns the used metadata factory.
Return value
MetadataFactoryInterface The metadata factory.
Overrides ExecutionContext::getMetadataFactory
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.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContext.php, line 152
Class
- LegacyExecutionContext
- An execution context that is compatible with the legacy API (< 2.5).
Namespace
Symfony\Component\Validator\ContextCode
public function getMetadataFactory() {
return $this->metadataFactory;
}