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

Finalize zend-servicemanager and zend-eventmanager v3 forwards compatibility #43

Merged
merged 9 commits into from
Feb 22, 2016

Conversation

weierophinney
Copy link
Member

This patch builds on #40 to do the following:

  • Update to stable, forwards-compatible versions wherever possible.
  • Remove unused dependencies. In this case, that means zend-mvc and zend-di, as they were used, literally, to test a zend-mvc factory. The test belongs in that repository.
  • Update the test matrix to build against both v2 and v3 versions of zend-eventmanager, zend-servicemanager, and zend-stdlib, as well as 1.1 and 2.1 versions of zend-hydrator. When testing against v3 versions, zend-session and zend-captcha are removed from the dev requirements, and their tests are skipped.

Initial testing locally shows all tests are running.

Matt Kynaston and others added 4 commits February 13, 2016 18:51
WIP: ServiceManager and EventManager v2-v3 compatibility
Updated dependencies to stable, forwards-compatible versions. Additionally,
removed zend-di and zend-mvc from the mix, as this version contained a test for
a class in zend-mvc (wrong component!).

zend-captcha and zend-session are removed when testing against v3
components as they are not yet forwards-compatible; tests against them are
marked skipped when that occurs.
@weierophinney weierophinney added this to the 2.7.0 milestone Feb 18, 2016
@weierophinney weierophinney self-assigned this Feb 18, 2016
@weierophinney
Copy link
Member Author

zend-eventmanager v2 compat is causing issues; will investigate.

Added an env variable for specifying the hydrator version to use, and now vary
the stdlib version based on the hydrator version, ensuring v2 variants are used
consistently (with v1.1 of hydrator).
Updated all `triggerUntil` calls to use the `triggerEventUntil` syntax,
to ensure both BC and FC (`triggerUntil()` in v2 uses the old signature,
making it non-viable for code supporting both versions).
This patch updates the FormElementManager and HelperConfig to ensure backwards
compatibility with v2. In addition, it removes code made obsolete by the final
zend-servicemanager v3 version (specifically, auto invokables were
re-introduced, and creation options are now present for classes mapped to the
`InvokableFactory`).
@weierophinney weierophinney removed the WIP label Feb 22, 2016
@weierophinney weierophinney merged commit b22b73c into zendframework:develop Feb 22, 2016
weierophinney added a commit that referenced this pull request Feb 22, 2016
weierophinney added a commit that referenced this pull request Feb 22, 2016
@weierophinney weierophinney deleted the feature/40 branch February 22, 2016 20:48
@Slamdunk
Copy link
Contributor

@kynx may you look at my thoughts in #63?

This PR has some strange behaviour 😕

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.

2 participants