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

Expose component as a config-provider / ZF component #26

Merged

Conversation

weierophinney
Copy link
Member

Adds:

  • ConfigProvider, which maps the default navigation factory and the navigation abstract factory, as well as the navigation view helper.
  • Module, which does the same as the above, but for zend-mvc applications.

Deprecates:

  • View\HelperConfig, as the functionality is now wrapped in the above.

Adds:

- `ConfigProvider`, which maps the default navigation factory and the
  navigation abstract factory, as well as the navigation view helper.
- `Module`, which does the same as the above, but for zend-mvc
  applications.

Deprecates:

- `View\HelperConfig`, as the functionality is now wrapped in the above.
@weierophinney weierophinney added this to the 2.7.0 milestone Apr 8, 2016
@weierophinney weierophinney self-assigned this Apr 8, 2016
`HelperConfig` contains a lot of logic for ensuring that the navigation helpers
are injected with the view helper plugin manager as well as the application
container, and cannot be deprecated safely. As a result, this patch uses a new
approach: a delegator factory, which uses `HelperConfig` to configure the helper
manager before returning it.

This approach should still be safe, as the various other approaches that
configure it operate on the already retrieved helper manager instance.
@weierophinney weierophinney merged commit f0afd11 into zendframework:develop Apr 8, 2016
weierophinney added a commit that referenced this pull request Apr 8, 2016
@weierophinney weierophinney deleted the feature/config-provider branch April 8, 2016 15:16
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