zendframework/zf2 — pull request #4100 by stephanoff (2013-03-23 13:06:15+00:00)
Title: Added FormObjectManager to configure objects via ServiceManager.

Would like to propose configuration for FormElementManager and FormObjectManager
```php
array(
'form' => array(
'Frontend\Form\FooBar' => array(
'object' => 'foobar',
'attributes' => array(
'action' => '/path/to/controller',
'method' => 'POST'
),
'elements' => array(
array(
'spec' => array(
'name' => 'foo',
'type' => 'text',
),
),
array(
'spec' => array(
'name' => 'bar',
'type' => 'text',
),
),
array(
'spec' => array(
'name' => 'foobar',
'type' => 'foobar',
),
),
),
),

'element_manager' => array(
'invokables' => array(
'foobar' => 'ZendTest\Form\TestAsset\ElementCustomTextfield',
),
),

'object_manager' => array(
'invokables' => array(
'foobar' => 'ZendTest\Form\TestAsset\Model',
),
),
),
),