You are here

public function LegacyValidator::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/LegacyValidator.php, line 65

Class

LegacyValidator
A validator that supports both the API of Symfony < 2.5 and Symfony 2.5+.

Namespace

Symfony\Component\Validator\Validator

Code

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