You are here

public function RecursiveValidator::getMetadataFactory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::getMetadataFactory()

Returns the factory for metadata instances.

Return value

MetadataFactoryInterface The metadata factory.

Overrides ValidatorInterface::getMetadataFactory

Deprecated

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

File

vendor/symfony/validator/Validator/RecursiveValidator.php, line 172

Class

RecursiveValidator
Recursive implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator\Validator

Code

public function getMetadataFactory() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated in version 2.5 and will be removed in version 3.0. Use the Symfony\\Component\\Validator\\Validator\\ValidatorInterface::getMetadataFor or Symfony\\Component\\Validator\\Validator\\ValidatorInterface::hasMetadataFor method instead.', E_USER_DEPRECATED);
  return $this->metadataFactory;
}