Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.2
-
Fix Version/s: 1.9.6
-
Component/s: Zend_Rest_Route
-
Labels:None
Description
Zend_Rest_Route doesn't work in chains with Zend_Controller_Router_Route.
Here is a simple test case:
$route = new Zend_Controller_Router_Route('api');
$router->addRoute("api", $route->chain(new Zend_Rest_Route($front)));
The problem is that Zend_Rest_Route doesn't set matched path in it's "match" method (which is required for chaining to work). As I think it should behave similar to Zend_Controller_Router_Route_Module, which uses following code:
public function match($path, $partial = false)
{
// skipping method body
if ($partial) {
$this->setMatchedPath($matchedPath);
}
// skipping
}
Can you help me by expanding the test case code? How is $router defined?
thanks,
-L