Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.7.0
-
Fix Version/s: 1.7.0
-
Component/s: Zend_Controller
-
Labels:None
-
Fix Version Priority:Must Have
Description
Currently, instances of the Zend_Controller_Router_Route_Interface receive only the path of the request URI as a string argument to match(). If this method were passed the Zend_Controller_Request_Http object directly, it would have considerable more freedom about the criteria with which to make route matches. As an example, this change would make it easy to implement a Route class that matches routes based on both the request URI and the request method without having to access $_SERVER directly.
These patches implement the suggested improvement in the various Route classes.