diff --git a/src/Bridges/DITracy/ContainerPanel.php b/src/Bridges/DITracy/ContainerPanel.php index a8acdac0b..766ce89ca 100644 --- a/src/Bridges/DITracy/ContainerPanel.php +++ b/src/Bridges/DITracy/ContainerPanel.php @@ -22,12 +22,14 @@ class ContainerPanel implements Tracy\IBarPanel { public static ?float $compilationTime = null; private Nette\DI\Container $container; + private Tracy\BlueScreen $blueScreen; private ?float $elapsedTime; - public function __construct(Container $container) + public function __construct(Container $container, Tracy\BlueScreen $blueScreen) { $this->container = $container; + $this->blueScreen = $blueScreen; $this->elapsedTime = self::$compilationTime ? microtime(as_float: true) - self::$compilationTime : null; @@ -77,6 +79,7 @@ public function getPanel(): string $parameters = $rc->getMethod('getStaticParameters')->getDeclaringClass()->getName() === Container::class ? null : $container->getParameters(); + $keysToHide = $this->blueScreen->keysToHide; require __DIR__ . '/dist/panel.phtml'; }); } diff --git a/src/Bridges/DITracy/dist/panel.phtml b/src/Bridges/DITracy/dist/panel.phtml index 8525b5794..fc7b616a3 100644 --- a/src/Bridges/DITracy/dist/panel.phtml +++ b/src/Bridges/DITracy/dist/panel.phtml @@ -58,7 +58,7 @@ declare(strict_types=1); - true, Dumper::LIVE => true, Dumper::DEPTH => 5]) ?> + true, Dumper::LIVE => true, Dumper::DEPTH => 5, Dumper::KEYS_TO_HIDE => $keysToHide]) ?> diff --git a/src/Bridges/DITracy/panel.latte b/src/Bridges/DITracy/panel.latte index 87d51026e..1b6090799 100644 --- a/src/Bridges/DITracy/panel.latte +++ b/src/Bridges/DITracy/panel.latte @@ -51,7 +51,7 @@ {if isset($instances[$name]) && !$instances[$name] instanceof Nette\DI\Container} - {Dumper::toHtml($instances[$name], [Dumper::COLLAPSE => true, Dumper::LIVE => true, Dumper::DEPTH => 5])} + {Dumper::toHtml($instances[$name], [Dumper::COLLAPSE => true, Dumper::LIVE => true, Dumper::DEPTH => 5, Dumper::KEYS_TO_HIDE => $keysToHide])} {elseif isset($instances[$name])} {get_class($instances[$name])} {elseif is_string($type)}