You are here

public function ValidatorBuilder::addObjectInitializers in Zircon Profile 8

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

Adds a list of object initializers to the validator.

Parameters

array $initializers The initializer:

Return value

ValidatorBuilderInterface The builder object

Overrides ValidatorBuilderInterface::addObjectInitializers

File

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

Class

ValidatorBuilder
The default implementation of {@link ValidatorBuilderInterface}.

Namespace

Symfony\Component\Validator

Code

public function addObjectInitializers(array $initializers) {
  $this->initializers = array_merge($this->initializers, $initializers);
  return $this;
}