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