ZF-12553: Zend_Navigation_Page_Mvc requires a getRoute() method that is missing in Zend_Controller_Router_Interface

Issue Type: Coding Standards Violation Created: 2013-03-26T14:24:16.000+0000 Last Updated: 2013-04-05T16:06:07.000+0000 Status: Closed Fix version(s): Reporter: Laurent Courtin (nugrul) Assignee: Frank Brückner (frosch) Tags: - Zend_Navigation

Related issues: Attachments:


Zend_Navigation_Page_Mvc requires the front controller's router to have a getRoute() method that is missing in Zend_Controller_Router_Interface

This can break an application using custom routers (such as CLI or cross application ones)


Posted by Frank Brückner (frosch) on 2013-03-26T15:12:36.000+0000

If we add the getRoute() method to the interface, then it ends in a BC break. But we can check the existence of the method in the Zend_Navigation_Page_Mvc class.

Posted by Laurent Courtin (nugrul) on 2013-03-29T09:08:03.000+0000

According to your comment, I got a working patch for version 1.12.3:

Zend_Navigation_Page_Mvc, line 175, I added the test for method presence:

if ($this->_route && method_exists($front->getRouter(), 'getRoute')) {

Posted by Ralph Schindler (ralph) on 2013-04-05T16:06:07.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

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.