Commit 97917e65 by Alexander Makarov

Revert "Added `yii\base\Module::getParam($name, $defaultValue = null)` to…

Revert "Added `yii\base\Module::getParam($name, $defaultValue = null)` to conveniently work with application parameters" This reverts commit 3b95aa9c.
parent 9c0572bf
......@@ -170,7 +170,6 @@ Yii Framework 2 Change Log
- New #2149: Added `yii\base\DynamicModel` to support ad-hoc data validation (qiangxue)
- New: Yii framework now comes with core messages in multiple languages
- New: Added yii\codeception\DbTestCase (qiangxue)
- New: Added `yii\base\Module::getParam($name, $defaultValue = null)` to conveniently work with application parameters (samdark)
2.0.0 alpha, December 1, 2013
......
......@@ -643,18 +643,6 @@ class Module extends Component
}
/**
* 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.
* Make sure you call the parent implementation so that the relevant event is triggered.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment