ZF2 register custom helper for navigation
I am using Zend Navigation with ACL . My users can have multiple roles, which have no relation to each other, but Zend Navigation only accepts one role and checks the ACL with that role which is not good for me. How can I register a new Helper for the Navigation such that I can override the acceptAcl method. I tried to create and register a simple view helper but that didn't work class Menu extends \Zend\View\Helper\Navigation\Menu implements \Zend\ServiceManager\ServiceLocatorAwareInterface { protected function acceptAcl(AbstractPage $page) { if (!$acl = $this->getAcl()) { // no acl