Permalink
Browse files

Fixes #115: Make the default panel configurable and set it to `log`

  • Loading branch information...
1 parent 92688f5 commit 91a0f4ebcef6da85d9633c7b84f2d8dcf181271e @mikehaertl mikehaertl committed with samdark Jul 27, 2016
Showing with 8 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +6 −0 Module.php
  3. +1 −1 controllers/DefaultController.php
View
@@ -9,6 +9,7 @@ Yii Framework 2 debug extension Change Log
- Bug #111: Fixed `LogTarget` to work properly when tests are ran via Codeception (samdark, nlmedina)
- Bug #93: Fixed `AssetPanel` error when bundle `$js` or `$css` contained `jsOptions` overrides (Razzwan, samdark)
- Enh #105: Enhanced `ConfigPanel` to detect and report memcached extension presence (samdark)
+- Enh #115: Make the default panel configurable and set it to `log` (mikehaertl)
2.0.6 March 17, 2016
--------------------
View
@@ -54,6 +54,12 @@ class Module extends \yii\base\Module implements BootstrapInterface
*/
public $panels = [];
/**
+ * @var string the name of the panel that should be visible when opening the debug panel.
+ * The default value is 'log'.
+ * @since 2.0.7
+ */
+ public $defaultPanel = 'log';
+ /**
* @var string the directory storing the debugger data files. This can be specified using a path alias.
*/
public $dataPath = '@runtime/debug';
@@ -82,7 +82,7 @@ public function actionView($tag = null, $panel = null)
if (isset($this->module->panels[$panel])) {
$activePanel = $this->module->panels[$panel];
} else {
- $activePanel = $this->module->panels['request'];
+ $activePanel = $this->module->panels[$this->module->defaultPanel];
}
return $this->render('view', [

0 comments on commit 91a0f4e

Please sign in to comment.