You are here

public function ValidatorBuilder::disableAnnotationMapping in Zircon Profile 8

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

Disables annotation based constraint mapping.

Return value

ValidatorBuilderInterface The builder object

Overrides ValidatorBuilderInterface::disableAnnotationMapping

File

vendor/symfony/validator/ValidatorBuilder.php, line 226

Class

ValidatorBuilder
The default implementation of {@link ValidatorBuilderInterface}.

Namespace

Symfony\Component\Validator

Code

public function disableAnnotationMapping() {
  $this->annotationReader = null;
  return $this;
}