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

Update to allow usage with zend-mvc v3 #36

Merged
merged 12 commits into from
Jun 11, 2016

Conversation

weierophinney
Copy link
Member

This patch builds on #33, and makes the following changes:

  • Updates the composer.json to add zend-router as both a development and suggested dependency.
  • Updates the composer.json to remove zend-mvc from the suggestions list.
  • Fixes several factories which did not work correctly with zend-servicemanager v2.
  • Updates the Mvc page type to inline the zend-mvc ModuleRouteListener constants, and thus remove the explicit dependency on it.
  • Updates the Mvc page type tests to vary test setup based on whether zend-mvc v2 or v3 is in use when testing.

Ralf Eggert and others added 12 commits June 5, 2016 08:03
…e-with-mvc-3

Feature/compatible with mvc 3
- Updated `Mvc` page type to inline the constants from zend-mvc's
  `ModuleRouteListener`; this means the code itself no longer depends on that
  functionality.
- Added zend-router to the require-dev section so that we can test properly
  against it for all supported versions.
- Kept the zend-mvc dev requirement, as we actually test against
  `ModuleRouteListener` (integration tests).
- Updated the suggestions to be more descriptive of why they are needed, and
  which versions can be used.
Updated class to use the forwards-compatible `FactoryInterface`, and
updated its `createService()` method to be compatible with v2.
…icemanager v2

Implement the v2 `DelegatorFactoryInterface`, which is forwards
compatible.
Added setup methods for selecting the correct router artifacts based on
the zend-mvc version (v2 will use the `Zend\Mvc\Router` variants, while
v3 will use the `Zend\Router` classes). Tests that depend on any of
concrete routes, routers, or route matches were updated to use these new
setup methods to derive the class(es) to use.
@weierophinney weierophinney added this to the 2.8.0 milestone Jun 11, 2016
@weierophinney weierophinney self-assigned this Jun 11, 2016
@weierophinney weierophinney merged commit b412499 into zendframework:develop Jun 11, 2016
weierophinney added a commit that referenced this pull request Jun 11, 2016
@weierophinney weierophinney deleted the feature/33 branch June 11, 2016 21:21
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