ZF-2853: Issue with Zend_Controller_Dispatcher_Interface definition

Issue Type: Bug Created: 2008-03-10T19:28:46.000+0000 Last Updated: 2008-09-02T10:39:16.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Adam Weinstock (adamweinstock) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:


I've noticed that in various places throughout the framework, objects make getDefaultControllerName(), getDefaultAction(), and getDefaultModule() method calls on objects of type Zend_Controller_Dispatcher_Interface. Those methods are not defined in Zend_Controller_Dispatcher_Interface, which can obviously lead to problems. These methods are defined in Zend_Controller_Dispatcher_Abstract, so it probably slipped by. However, if one were to create the class My_Controller_Dispatcher_Abstract from which all application dispatchers inherit, there would be major problems if the methods mentioned above were not defined.

I haven't scoured the entire framework, but know that the above methods are called in Zend_Controller_Front and Zend_Controller_Router_Route_Module from object properties that are defined as type Zend_Controller_Dispatcher_Interface.


Posted by Wil Sinclair (wil) on 2008-03-25T20:41:12.000+0000

Please categorize/fix as needed.

Posted by Matthew Weier O'Phinney (matthew) on 2008-08-04T08:07:54.000+0000

Interface updated (as well as documentation) in trunk and 1.6 release branch.

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:16.000+0000

Updating for the 1.6.0 release.

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.