Commit 0909e025 by Qiang Xue

Fixes #5600: Allow configuring debug panels in `yii\debug\Module::panels` as…

Fixes #5600: Allow configuring debug panels in `yii\debug\Module::panels` as panel class name strings
parent 999e8b84
......@@ -4,7 +4,7 @@ Yii Framework 2 debug extension Change Log
2.0.1 under development
-----------------------
- no changes in this release.
- Enh #5600: Allow configuring debug panels in `yii\debug\Module::panels` as panel class name strings (qiangxue)
2.0.0 October 12, 2014
......
......@@ -101,6 +101,9 @@ class Module extends \yii\base\Module implements BootstrapInterface
}
foreach ($this->panels as $id => $config) {
if (is_string($config)) {
$config = ['class' => $config];
}
$config['module'] = $this;
$config['id'] = $id;
$this->panels[$id] = Yii::createObject($config);
......
......@@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.1 under development
-----------------------
- Enh #5600: Allow configuring debug panels in `yii\debug\Module::panels` as panel class name strings (qiangxue)
- Bug #5584: `yii\rbac\DbRbacManager` should not delete items when deleting a rule on a database not supporting cascade update (mdmunir)
......
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