File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/Bridges/ApplicationTracy Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 1313use Nette \Application \Routers ;
1414use Nette \Application \UI \Presenter ;
1515use 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 }
You can’t perform that action at this time.
0 commit comments