Skip to content

Commit 051fcd5

Browse files
authored
Add Debug Viewer (#78)
1 parent 1f81437 commit 051fcd5

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"yiisoft/yii-console": "^3.0@dev",
5858
"yiisoft/yii-cycle": "^3.0@dev",
5959
"yiisoft/yii-debug": "^3.0@dev",
60+
"yiisoft/yii-debug-api": "^3.0@dev",
6061
"yiisoft/yii-event": "^1.0",
6162
"yiisoft/yii-swagger": "^3.0@dev",
6263
"yiisoft/yii-web": "^3.0@dev"
@@ -137,6 +138,7 @@
137138
"roave/infection-static-analysis-plugin": "^1.5",
138139
"spatie/phpunit-watcher": "^1.23",
139140
"vimeo/psalm": "^4.2",
140-
"yiisoft/json": "^1.0"
141+
"yiisoft/json": "^1.0",
142+
"yiisoft/yii-debug-viewer": "^3.0@dev"
141143
}
142144
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
'yiisoft/yii-debug' => [
7+
'optionalRequests' => ['/debug**'],
8+
],
9+
'yiisoft/yii-debug-api' => [
10+
'enabled' => true,
11+
'allowedIPs' => ['127.0.0.1', '::1'],
12+
'allowedHosts' => [],
13+
],
14+
];

config/packages/yiisoft/yii-debug/params.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
return [
2626
'yiisoft/yii-debug' => [
27-
'enabled' => false,
27+
'enabled' => true,
2828
'collectors' => [
2929
LogCollectorInterface::class,
3030
EventCollectorInterface::class,

0 commit comments

Comments
 (0)