You are here

public function ValidatorBuilder::disableAnnotationMapping in Plug 7

Disables annotation based constraint mapping.

Return value

ValidatorBuilderInterface The builder object

Overrides ValidatorBuilderInterface::disableAnnotationMapping

File

lib/Symfony/validator/Symfony/Component/Validator/ValidatorBuilder.php, line 234

Class

ValidatorBuilder
The default implementation of {@link ValidatorBuilderInterface}.

Namespace

Symfony\Component\Validator

Code

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