Revert "Added yii\base\Module::getParam($name, $defaultValue = null) to conveniently work with application parameters"

This reverts commit 3b95aa9cd1eb39a00a4d32f0e05ebd78f858dad3.
This commit is contained in:
Alexander Makarov
2014-02-05 23:18:36 +04:00
parent 9c0572bff9
commit 97917e6580
2 changed files with 0 additions and 13 deletions

View File

@ -642,18 +642,6 @@ class Module extends Component
return isset($controller) ? [$controller, $route] : false;
}
/**
* Returns parameter with a given name.
*
* @param string $name the parameter name
* @param mixed $defaultValue the default parameter value if the parameter does not exist
* @return mixed
*/
public function getParam($name, $defaultValue = null)
{
return isset($this->params[$name]) ? $this->params[$name] : $defaultValue;
}
/**
* This method is invoked right before an action of this module is to be executed (after all possible filters.)
* You may override this method to do last-minute preparation for the action.