ZF-2430: Zend_Controller_Router_Interface class doesn't need to include front controller

Issue Type: Improvement Created: 2008-01-14T09:36:08.000+0000 Last Updated: 2008-02-26T12:55:57.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Michal Minicki (martel) Assignee: Michal Minicki (martel) Tags: - Zend_Controller

Related issues: Attachments:


From the mailing list (by Tom Auinger):

I just found that the Zend_Controller_Router_Interface class includes the Zend_Controller_Front class on line 26 (in ZF 1.0.3):

require_once 'Zend/Controller/Front.php';

However, this class is never used within the interface.

Removing this include would increase performance when using the router interface without the front controller.



Route interface should have an additional method:

public static function getInstance(Zend_Config $config);

And then Module Router needs some additional require statements:

Zend_Controller_Request_Abstract Zend_Controller_Dispatcher_Interface


Posted by Michal Minicki (martel) on 2008-01-15T05:28:14.000+0000

Fixed in revision 7444. Changelog:

Cleaned interfaces of unneeded classes and added some missing. Zend_Controller_Router_Abstract: moved inclusion of Front controller (now JIT) to allow more lightweight subclassing
Lazy loading exceptions

Have you found an issue?

See the Overview section for more details.


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

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