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