Fully Qualified Name: | Zend\Form\FormElementManager\FormElementManagerTrait |
Trait providing common logic between FormElementManager implementations.
Trait does not define properties, as the properties common between the two versions are originally defined in their parent class, causing a resolution conflict.
Name | Description | Defined By |
---|---|---|
get() | Retrieve a service from the manager by name | FormElementManagerTrait |
getFactoryFromName() | Try to pull factory from the creation context, or instantiates it from its name | FormElementManagerTrait |
getHydratorFromName() | Try to pull hydrator from the creation context, or instantiates it from its name | FormElementManagerTrait |
Retrieve a service from the manager by name
Allows passing an array of options to use when creating the instance. createFromInvokable() will use these and pass them to the instance constructor if not null and a non-empty array.
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$options | string|array | |
$usePeeringServiceManagers | bool |
Returns: object
Try to pull factory from the creation context, or instantiates it from its name
Parameter Name | Type | Description |
---|---|---|
$factoryName | string |
Returns: mixed
Try to pull hydrator from the creation context, or instantiates it from its name
Parameter Name | Type | Description |
---|---|---|
$hydratorName | string |
Returns: mixed