Skip to content

Commit 8c8a034

Browse files
committed
RoutingPanel: uses BlueScreen dumper
1 parent a1c9d2a commit 8c8a034

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"nette/robot-loader": "^2.4.2 || ^3.0",
3333
"nette/security": "^3.0",
3434
"latte/latte": "^3.0",
35-
"tracy/tracy": "^2.4",
35+
"tracy/tracy": "^2.6",
3636
"mockery/mockery": "^1.0"
3737
},
3838
"conflict": {

src/Bridges/ApplicationTracy/RoutingPanel.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Nette\Application\Routers;
1414
use Nette\Application\UI\Presenter;
1515
use Tracy;
16-
use Tracy\Dumper;
1716

1817

1918
/**
@@ -44,11 +43,13 @@ final class RoutingPanel implements Tracy\IBarPanel
4443

4544
public static function initializePanel(Nette\Application\Application $application): void
4645
{
47-
Tracy\Debugger::getBlueScreen()->addPanel(function (?\Throwable $e) use ($application): ?array {
46+
$blueScreen = Tracy\Debugger::getBlueScreen();
47+
$blueScreen->addPanel(function (?\Throwable $e) use ($application, $blueScreen): ?array {
48+
$dumper = $blueScreen->getDumper();
4849
return $e ? null : [
4950
'tab' => 'Nette Application',
50-
'panel' => '<h3>Requests</h3>' . Dumper::toHtml($application->getRequests(), [Dumper::LIVE => true])
51-
. '<h3>Presenter</h3>' . Dumper::toHtml($application->getPresenter(), [Dumper::LIVE => true]),
51+
'panel' => '<h3>Requests</h3>' . $dumper($application->getRequests())
52+
. '<h3>Presenter</h3>' . $dumper($application->getPresenter()),
5253
];
5354
});
5455
}

0 commit comments

Comments
 (0)