From 97917e65804ec641a39a0c9ad4e24b51b14894c3 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 5 Feb 2014 23:18:36 +0400 Subject: [PATCH] Revert "Added `yii\base\Module::getParam($name, $defaultValue = null)` to conveniently work with application parameters" This reverts commit 3b95aa9cd1eb39a00a4d32f0e05ebd78f858dad3. --- framework/CHANGELOG.md | 1 - framework/base/Module.php | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 973ffee106..b19ac09664 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -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 diff --git a/framework/base/Module.php b/framework/base/Module.php index 362d69a235..b65ad8b5d1 100644 --- a/framework/base/Module.php +++ b/framework/base/Module.php @@ -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.