mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-08 00:07:23 +01:00
Fixes #5600: Allow configuring debug panels in yii\debug\Module::panels as panel class name strings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user