ZF-6296: Zend_Controller_Router - Refactoring


Currently, the router has many flaws and drawbacks, which this refactoring is going to solve. This includes usability of the router, as well as performance and code-cleaning. Will be worked out with a mini proposal post 1.8.

This issue is to be solved with ZF 2.0, as it involves many BC-breaks. A quick and short list of possible changes:

  • Removing getInstance(), instead __construct($options)
  • Making getDefaults(), getDefault() of routes interface methods
  • Making getCurrentRoute() and getCurrentRouteName() interface methods
  • CS Cleanup
  • Using match(Zend_Controller_Request_Http $request) in the interface
  • Allowing request-method routing per route


Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.