Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
何平 committed Mar 6, 2024
1 parent 240a102 commit 8e0e361
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/WebSocketDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,11 @@ static function () use ($expression, $transfer): void {
$this->out(Json::encode($info));
break;
case 'config':
// todo 但是不建议获取敏感信息
$config = di()->get(ConfigInterface::class);
$reflection = new ReflectionClass($config);
$property = $reflection->getProperty('configs');
$this->out(
Json::encode($property->getValue($config)),
Json::encode($property->getValue($config),JSON_PRETTY_PRINT),
);
break;
case 'route':
Expand Down

0 comments on commit 8e0e361

Please sign in to comment.