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

Description

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)

Comments

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.

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')) {

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf1/issues/69