-
Notifications
You must be signed in to change notification settings - Fork 25
Feature/compatible with mvc 3 #33
Feature/compatible with mvc 3 #33
Conversation
use Zend\Mvc\Router\RouteMatch; | ||
use Zend\Mvc\Router\RouteStackInterface; | ||
use Zend\Router\Http\RouteMatch; | ||
use Zend\Router\Http\TreeRouteStack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain, why you use a concrete implementation and no longer the interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my mistake. Fixed that. I blame it on the weather.... ;-)
@@ -10,8 +10,8 @@ | |||
namespace Zend\Navigation\Page; | |||
|
|||
use Zend\Mvc\ModuleRouteListener; | |||
use Zend\Mvc\Router\RouteMatch; | |||
use Zend\Mvc\Router\RouteStackInterface; | |||
use Zend\Router\Http\RouteMatch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change also Zend\Router\Http\RouteMatch
to Zend\Router\RouteMatch
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@RalfEggert |
Fixed the tests |
@RalfEggert
|
@RalfEggert you can look at https://github.com/zendframework/zend-view/blob/master/src/Helper/Url.php It consumes both Zend\Mvc\Router and Zend\Router. |
@vaclavvanik Btw. That's a good point! |
@froschdesign I meant @RalfEggert can look at Zend\View\Helper\Url because this helper could be used with both Zend\Mvc 2.0 and 3.0. Ralfs changes are Mvc 3.0 imho. |
@vaclavvanik
This is an option for a next minor release in version 2 of |
The only dependency to Zend\Mvc left is in https://github.com/zendframework/zend-navigation/blob/develop/src/Page/Mvc.php It uses the two constants Not sure about the |
@RalfEggert I noticed that Travis was reporting test failures for zend-mvc v2 (and servicemanager, etc.). I took the liberty of pulling locally and figuring out how to get things running. This included:
I've tested locally with both an updated Thanks for doing the heavy-lifting, @RalfEggert ! |
…e-with-mvc-3 Feature/compatible with mvc 3
👍 |
Make Zend\Navigation compatible with Zend\Mvc and Zend\Router