Adds a list of XML constraint mapping files to the validator.
array $paths The paths to the mapping files.:
ValidatorBuilderInterface The builder object.
Overrides ValidatorBuilderInterface::addXmlMappings
public function addXmlMappings(array $paths) {
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 = array_merge($this->xmlMappings, $paths);
return $this;
}