mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-24 07:57:10 +01:00
debugger wip
This commit is contained in:
@@ -35,11 +35,17 @@ class Module extends \yii\base\Module
|
||||
* @var array|Panel[]
|
||||
*/
|
||||
public $panels = array();
|
||||
/**
|
||||
* @var string the directory storing the debugger data files. This can be specified using a path alias.
|
||||
*/
|
||||
public $dataPath = '@runtime/debug';
|
||||
public $historySize = 5;
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
$this->dataPath = Yii::getAlias($this->dataPath);
|
||||
$this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this);
|
||||
Yii::$app->getView()->on(View::EVENT_END_BODY, array($this, 'renderToolbar'));
|
||||
|
||||
@@ -84,9 +90,6 @@ class Module extends \yii\base\Module
|
||||
protected function corePanels()
|
||||
{
|
||||
return array(
|
||||
'config' => array(
|
||||
'class' => 'yii\debug\panels\ConfigPanel',
|
||||
),
|
||||
'request' => array(
|
||||
'class' => 'yii\debug\panels\RequestPanel',
|
||||
),
|
||||
@@ -99,6 +102,9 @@ class Module extends \yii\base\Module
|
||||
'db' => array(
|
||||
'class' => 'yii\debug\panels\DbPanel',
|
||||
),
|
||||
'config' => array(
|
||||
'class' => 'yii\debug\panels\ConfigPanel',
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user