Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Expose as a config provider / component #53

Merged

Conversation

weierophinney
Copy link
Member

Adds:

  • FormElementManagerFactory, originally from zend-mvc, along with tests.
  • Zend\Form\Annotation\AnnotationBuilderFactory, originally from zend-mvc (as Zend\Mvc\Service\FormAnnotationBuilderFactory), along with tests.
  • ConfigProvider, which maps the FormElementsManager and FormAnnotationBuilder servies previously provided by zend-mvc; the form abstract factory as previously registered by zend-mvc; and all view helper configuration.
  • Module, which maps services and view helpers per the ConfigProvider, and provides configuration to the zend-modulemanager ServiceLocator in order for modules to provide form and form element configuration.

Finally , it also updates Zend\Form\View\HelperConfig to consume the ConfigProvider in order to provide view helper factories and aliases, and marks the class as deprecated.

Imports the `FormElementManagerFactory` from zend-mvc, and provides
tests.
Ports a test from the zend-mvc test suite to ensure behavior of the form
element manager.
…ctory.

Imported `Zend\Mvc\Service\FormAnnotationBuilderFactory` as the class
`Zend\Form\Annotation\AnnotationBuilderFactory`, and imported the tests
as well.

Tests were re-written to better cover the class, and the class was
refactored using extract method refactoring.
Adds:

- `ConfigProvider`, which maps the `FormElementsManager` and
  `FormAnnotationBuilder` servies previously provided by zend-mvc; the form
  abstract factory as previously registered by zend-mvc; and all view helper
  configuration.
- `Module`, which maps services and view helpers per the `ConfigProvider`, and
  provides configuration to the zend-modulemanager `ServiceLocator` in order for
  modules to provide form and form element configuration.

Updates `Zend\Form\View\HelperConfig` to consume the `ConfigProvider` in order
to provide view helper factories and aliases.
@weierophinney weierophinney added this to the 2.8.0 milestone Apr 7, 2016
@weierophinney weierophinney self-assigned this Apr 7, 2016
@weierophinney weierophinney merged commit d4b9e94 into zendframework:develop Apr 7, 2016
weierophinney added a commit that referenced this pull request Apr 7, 2016
@weierophinney weierophinney deleted the feature/config-provider branch April 7, 2016 22:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant