Adds an XML constraint mapping file to the validator.
string $path The path to the mapping file.:
ValidatorBuilderInterface The builder object.
Overrides ValidatorBuilderInterface::addXmlMapping
public function addXmlMapping($path) {
if (null !== $this->metadataFactory) {
throw new ValidatorException('You cannot add custom mappings after setting a custom metadata factory. Configure your metadata factory instead.');
}
$this->xmlMappings[] = $path;
return $this;
}