You are here

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\Context

Code

public function getMetadataFactory() {
  return $this->metadataFactory;
}