You are here

public function Validator::getMetadataFactory in Plug 7

Returns the factory for metadata instances.

@api

Return value

MetadataFactoryInterface The metadata factory.

Overrides ValidatorInterface::getMetadataFactory

Deprecated

Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Validator\ValidatorInterface::getMetadataFor()} or {@link Validator\ValidatorInterface::hasMetadataFor()} instead.

File

lib/Symfony/validator/Symfony/Component/Validator/Validator.php, line 71

Class

Validator
Default implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator

Code

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