FormElementManager delegator to create forms, fieldsets and elements from config.
Delegator for Zend FormElementManager
This package provides a delegator for the FormElementManager which configures the PluginManager to use the service configuration from
form_elements from your config.
The easiest way to install this package is through composer:
$ composer require tobias/zend-expressive-form-delegator
In the general case where you are only using a single connection, it's enough to define the delegator factory for the FormElementManager:
return [ 'dependencies' => [ 'delegators' => [ 'FormElementManager' => [ \Tobias\Expressive\Form\FormElementManagerDelegatorFactory::class, ], ], ], ];
If you're using the Expressive Config Manager you can easily add the ConfigProvider class.
$configManager = new ConfigManager( [ \Tobias\Expressive\Form\ConfigProvider::class, ] );