public function ValidatorBuilder::addObjectInitializers in Plug 7
Adds a list of object initializers to the validator.
Parameters
array $initializers The initializer:
Return value
ValidatorBuilderInterface The builder object
Overrides ValidatorBuilderInterface::addObjectInitializers
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilder.php, line 118
Class
- ValidatorBuilder
- The default implementation of {@link ValidatorBuilderInterface}.
Namespace
Symfony\Component\ValidatorCode
public function addObjectInitializers(array $initializers) {
$this->initializers = array_merge($this->initializers, $initializers);
return $this;
}