ZF-6296: Zend_Controller_Router - Refactoring

Issue Type: Improvement Created: 2009-04-14T15:11:48.000+0000 Last Updated: 2012-11-20T20:53:27.000+0000 Status: Closed Fix version(s): Reporter: Ben Scholzen (dasprid) Assignee: None Tags: - Zend_Controller

Related issues: Attachments:


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


Posted by Rob Allen (rob) on 2012-11-20T20:53:27.000+0000

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.