ZF-4003: uncessesary final method declaration

Issue Type: Bug Created: 2008-08-19T19:21:17.000+0000 Last Updated: 2008-11-13T14:10:01.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Mina R Waheeb (mina) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Controller

Related issues: Attachments:


The Zend_Controller_Action class contains four methods declared with final modifier:

1 - final protected function _getParam($paramName, $default = null) 2 - final protected function _setParam($paramName, $value) 3 - final protected function _hasParam($paramName) 4 - final protected function _getAllParams()

The question is why. those functions are just wrapper functions for a protected variable and they use getRequest() which is not final. What about if i wana extend the functionality of them and make a general Action call for all my application for example load a default controller parameters from a config file without modify the request?

Please remove the boring final :)



Posted by Benjamin Eberlei (beberlei) on 2008-11-08T00:24:23.000+0000

Fixed in trunk.

Without unit test since i don't come up with a non-obvious way of testing this (without leading to fatal error if its final again).

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:01.000+0000

Changing issues in preparation for the 1.7.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.