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

Forwards compatibility with zend-servicemanager, zend-eventmanager v3 #29

Merged

Conversation

weierophinney
Copy link
Member

This patch makes the code base forwards compatible with zend-servicemanager and zend-eventmanager v3. Changes include:

  • Ensuring factories and abstract factories implement both the v2 and v3 methods.
  • Rewriting calls to triggerUntil to instead use triggerEventUntil().
  • Settting all dependencies to known-stable, forwards-compatible versions.
  • Setting up test jobs for both v2 and v3 components.

- Updated to stable, forwards-compatible versoins of all dependencies.
- Updated test matrix to test against both v2 and v3 of event/service manager
  implementations.
- Updates all factories and abstract factories to re-introduce v2 compatibility.
- Removed extra constructor arguments from ValidatorChain; no longer necessary,
  and removing them helps retain BC.
- Use `triggerEventUntil()` instead of `triggerUntil()` (latter has FC
  problems).
@weierophinney weierophinney added this to the 2.6.0 milestone Feb 22, 2016
@weierophinney weierophinney self-assigned this Feb 22, 2016
- Use ServiceManager\Config instances and/or the various setters to configure
  service managers.
- Use `::class` notation wherever possible.
- Refactor tests for listeners to work with both EM versions.
Since the definitions for EventManager::attach differ between major versions, we
have to introduce a polyfill to alias version-specific implementations to the
ValidatorChain class.
@weierophinney weierophinney merged commit 707a7d9 into zendframework:develop Feb 23, 2016
weierophinney added a commit that referenced this pull request Feb 23, 2016
weierophinney added a commit that referenced this pull request Feb 23, 2016
@weierophinney weierophinney deleted the feature/forwards-compat branch February 23, 2016 14:17
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