Zend\Form\Factory::prepareAndInjectHydrator
Prepare and inject a named hydrator
Takes a string indicating a hydrator class name (or a concrete instance), try first to instantiates the class by pulling it from service manager, and injects the hydrator instance into the form.
Signature
protected function prepareAndInjectHydrator(HydratorInterface
$hydratorOrName,
FieldsetInterface
$fieldset,
string
$method )
Parameters
$hydratorOrName
— object
$fieldset
— Zend\Form\FieldsetInterface
$method
— string
Returns
- void
Errors/Exceptions
-
DomainException
- If $hydratorOrName is not a string, does not resolve to a known class, or